Ignoring transactions slightly above gas_limit

This commit is contained in:
Tomasz Drwięga
2016-03-17 15:20:33 +01:00
parent a76eb022d0
commit 309af743e0
3 changed files with 85 additions and 4 deletions

View File

@@ -79,6 +79,13 @@ pub enum TransactionError {
/// Transaction cost
cost: U256,
},
/// Transactions gas is higher then current gas limit
GasLimitExceeded {
/// Current gas limit
limit: U256,
/// Declared transaction gas
got: U256,
},
/// Transaction's gas limit (aka gas) is invalid.
InvalidGasLimit(OutOfBounds<U256>),
}