solana/local-cluster
steviez 1057ba8406
Use is_trusted bool in insert_shreds() instead manually adjusting root (#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).
2023-11-09 22:56:48 -06:00
..
src Use is_trusted bool in insert_shreds() instead manually adjusting root (#34010) 2023-11-09 22:56:48 -06:00
tests Use is_trusted bool in insert_shreds() instead manually adjusting root (#34010) 2023-11-09 22:56:48 -06:00
.gitignore
Cargo.toml Split vote related code from runtime to its own crate (#32882) 2023-09-19 10:46:37 -07:00