forked from kaspanet/rusty-kaspa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IBD: fix some syncer-syncee miscommunications which are more apparent…
… with 10 bps (kaspanet#221) * comments * extend resolution range to 8 max * do not sync missing bodies in the past of `syncer_header_selected_tip` * typos * no need to lock the pruning store throughout locator building * the two conditions can be done in one * rollback previous change (will be fixed more correctly by the coming switch HSC-> VSC) * change selected chain store from *headers* selected chain to *virtual* selected chain (wip: test fix; renaming of various variables) * fix selected-chain test by adding a way to (test-)build utxo valid blocks with specific parents * make pruning point getter non-Option * rename `headers_selected_chain` -> `virtual_selected_parent` * add temp logic for upgrading from prev DB version * get tip if high is none through the selected chain store itself * add virtual chain assertion to relevant tests * added selected_chain_store_iterator which is more idiomatic * wrap with TestBlockBuilder to avoid direct access through virtual processor * keep the pruning point read guard throughout building the locator * break if parent is missing * extend comment
- Loading branch information
1 parent
27d61e1
commit caedaa2
Showing
19 changed files
with
300 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.