Blocktree last_root to enforce a slot floor (#5593)
* Add last_root to blocktree * Don't repair earlier than last_root * Add integration test to make sure blocktree floor is enforced
This commit is contained in:
@@ -544,7 +544,7 @@ pub mod tests {
|
||||
info!("last_fork1_entry.hash: {:?}", last_fork1_entry_hash);
|
||||
info!("last_fork2_entry.hash: {:?}", last_fork2_entry_hash);
|
||||
|
||||
blocktree.set_roots(&[4, 1, 0]).unwrap();
|
||||
blocktree.set_roots(&[0, 1, 4]).unwrap();
|
||||
|
||||
let (bank_forks, bank_forks_info, _) =
|
||||
process_blocktree(&genesis_block, &blocktree, None, true, None).unwrap();
|
||||
|
Reference in New Issue
Block a user