Revert "use cost model to limit new account creation (#21369)"
This reverts commit 90f41fd9b7
.
This commit is contained in:
committed by
GitHub
parent
90f41fd9b7
commit
87e577db4c
@@ -1032,12 +1032,11 @@ impl Accounts {
|
||||
let keys: Vec<_> = txs
|
||||
.zip(results)
|
||||
.filter_map(|(tx, res)| match res {
|
||||
Err(TransactionError::AccountInUse)
|
||||
| Err(TransactionError::SanitizeFailure)
|
||||
| Err(TransactionError::AccountLoadedTwice)
|
||||
| Err(TransactionError::WouldExceedMaxBlockCostLimit)
|
||||
| Err(TransactionError::WouldExceedMaxAccountCostLimit)
|
||||
| Err(TransactionError::WouldExceedMaxAccountDataCostLimit) => None,
|
||||
Err(TransactionError::AccountInUse) => None,
|
||||
Err(TransactionError::SanitizeFailure) => None,
|
||||
Err(TransactionError::AccountLoadedTwice) => None,
|
||||
Err(TransactionError::WouldExceedMaxBlockCostLimit) => None,
|
||||
Err(TransactionError::WouldExceedMaxAccountCostLimit) => None,
|
||||
_ => Some(tx.get_account_locks(demote_program_write_locks)),
|
||||
})
|
||||
.collect();
|
||||
|
Reference in New Issue
Block a user