Skip to content

Conversation

@quantumagi
Copy link
Contributor

@quantumagi quantumagi commented Nov 3, 2022

This repository is fairly loose wrt tracking its own "tip" - i.e. the information in the repository is ill-defined as to how up-to-date it is wrt which tip. It is not capable of rewind on start-up despite scenarios where the other components may be rewinding.

After the overhaul we re-build, the now in-memory repo, from a potentially rewound polls repository on startup.

Some feature we now have with the new repository:

  • a detailed and exact history of when hashes were active due to qualifying existence checks with height parameters.
  • the ability to register hashes (with their activation height) even before they become active which will assist in future performance improvements (e.g. PR [IBD/Rewind] Optimize VotingManager for batched operations #933).

@quantumagi
Copy link
Contributor Author

WIP

@quantumagi
Copy link
Contributor Author

Should be ready for review now

@quantumagi quantumagi merged commit 0fa7bfc into stratisproject:release/1.5.0.0 Nov 8, 2022
quantumagi added a commit to quantumagi/StratisFullNode-1 that referenced this pull request Jan 31, 2023
* Refactor WhitelistedHashesRepository

* Add missing bits

* Fix constructor

* Fix

* Enforce poll application in height and id order

* Make UnProcessBlock deterministic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants