forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use is_trusted bool in insert_shreds() instead manually adjusting root (
solana-labs#34010) The test_duplicate_with_pruned_ancestor test needs to get around a limitation where the shreds with a parent older than the latest root are discarded. The previous approach manually adjusted the root value in the blockstore; this is not ideal in that it is fiddling with the inner working of Blockstore. So, use the is_trusted argument in Blockstore::insert_shreds(); setting is_trusted=true bypasses the sanity checks (including the parent >= latest root check).
- Loading branch information
Showing
3 changed files
with
19 additions
and
18 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