Re-do rent collection check on rent-exempt account (bp #11349) (#11654)

* Re-do rent collection check on rent-exempt account (#11349)

* wip: re-do rent collection check on rent-exempt account

* Let's see how the ci goes

* Restore previous code

* Well, almost all new changes are revertable

* Update doc

* Add test and gating

* Fix tests

* Fix tests, especially avoid to change abi...

* Fix more tests...

* Fix snapshot restore

* Align to _new_ with better uninitialized detection

(cherry picked from commit 23fa84b322)

# Conflicts:
#	core/src/rpc_subscriptions.rs
#	core/tests/bank_forks.rs
#	runtime/src/bank.rs

* Fix conflicts

* Add missing comment

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
mergify[bot]
2020-08-17 11:14:56 +00:00
committed by GitHub
parent 070fbeb69a
commit e2626dad83
10 changed files with 164 additions and 47 deletions

View File

@@ -749,6 +749,7 @@ where
bank.rc = bankrc;
bank.operating_mode = Some(genesis_config.operating_mode);
bank.init_rent_collector_after_deserialize(genesis_config);
bank.finish_init();
Ok(bank)
})?;