Revert "Add simulation detection countermeasure (#22880)" (#23261)

This reverts commit c42b80f099.
This commit is contained in:
Tyera Eulberg
2022-02-21 14:15:37 -07:00
committed by GitHub
parent ebe3d2d59d
commit 7e08ae1d0c
11 changed files with 164 additions and 2822 deletions

View File

@@ -199,16 +199,9 @@ impl Accounts {
}
}
pub fn new_from_parent(
parent: &Accounts,
slot: Slot,
parent_slot: Slot,
simulation_bank: bool,
) -> Self {
pub fn new_from_parent(parent: &Accounts, slot: Slot, parent_slot: Slot) -> Self {
let accounts_db = parent.accounts_db.clone();
if !simulation_bank {
accounts_db.set_hash(slot, parent_slot);
}
accounts_db.set_hash(slot, parent_slot);
Self {
accounts_db,
account_locks: Mutex::new(AccountLocks::default()),