Freeze warped bank to show freeze logs (#11141)

This commit is contained in:
Ryo Onodera 2020-07-21 15:51:56 +09:00 committed by GitHub
parent 7cc2a6801b
commit 6935e88148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1641,6 +1641,7 @@ fn main() {
.get_first_slot_in_epoch(warp_epoch);
let warped_bank =
Bank::new_from_parent(&base_bank, base_bank.collector_id(), next_epoch);
warped_bank.freeze();
println!("Slot: {} => {}", base_bank.slot(), warped_bank.slot());
println!("Epoch: {} => {}", base_bank.epoch(), warped_bank.epoch());