Revert "use cost model to limit new account creation (#21369)"

This reverts commit 90f41fd9b7.
This commit is contained in:
Jeff Washington (jwash)
2021-12-12 15:00:35 -06:00
committed by GitHub
parent 90f41fd9b7
commit 87e577db4c
11 changed files with 33 additions and 223 deletions

View File

@@ -45,7 +45,6 @@ enum TransactionErrorType {
UNSUPPORTED_VERSION = 18;
INVALID_WRITABLE_ACCOUNT = 19;
WOULD_EXCEED_MAX_ACCOUNT_COST_LIMIT = 20;
WOULD_EXCEED_MAX_ACCOUNT_DATA_COST_LIMIT = 21;
}
message InstructionError {

View File

@@ -567,7 +567,6 @@ impl TryFrom<tx_by_addr::TransactionError> for TransactionError {
18 => TransactionError::UnsupportedVersion,
19 => TransactionError::InvalidWritableAccount,
20 => TransactionError::WouldExceedMaxAccountCostLimit,
21 => TransactionError::WouldExceedMaxAccountDataCostLimit,
_ => return Err("Invalid TransactionError"),
})
}
@@ -638,9 +637,6 @@ impl From<TransactionError> for tx_by_addr::TransactionError {
TransactionError::WouldExceedMaxAccountCostLimit => {
tx_by_addr::TransactionErrorType::WouldExceedMaxAccountCostLimit
}
TransactionError::WouldExceedMaxAccountDataCostLimit => {
tx_by_addr::TransactionErrorType::WouldExceedMaxAccountDataCostLimit
}
} as i32,
instruction_error: match transaction_error {
TransactionError::InstructionError(index, ref instruction_error) => {