Disable eager rent collection for less noise (#13275)

This commit is contained in:
Ryo Onodera 2020-10-29 23:16:38 +09:00 committed by GitHub
parent be80f6d5c5
commit 363c148dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2014,6 +2014,9 @@ fn main() {
let next_epoch = base_bank
.epoch_schedule()
.get_first_slot_in_epoch(warp_epoch);
base_bank
.lazy_rent_collection
.store(true, std::sync::atomic::Ordering::Relaxed);
let warped_bank =
Bank::new_from_parent(&base_bank, base_bank.collector_id(), next_epoch);
warped_bank.freeze();