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:
carllin
2019-08-27 15:09:41 -07:00
committed by GitHub
parent 362a39a941
commit 8b9c3a2561
8 changed files with 347 additions and 151 deletions

View File

@@ -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();