Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Don't send a simple transafer to before-eip155 ix
  • Loading branch information
afalaleev committed Apr 14, 2022
commit e0af95662c8ca50c286c6416d0d35a22b52079f5
6 changes: 5 additions & 1 deletion proxy/neon_rpc_api_model/transaction_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ def __init__(self, solana: SolanaInteractor, tx: EthTx, min_gas_price: int):
self._estimated_gas = 0

self._tx_gas_limit = self._tx.gasLimit

if self._tx.hasChainId() or (not ALLOW_UNDERPRICED_TX_WITHOUT_CHAINID):
return

if len(self._tx.callData) == 0:
return

tx_gas_limit = self._tx_gas_limit * NEON_GAS_LIMIT_MULTIPLIER_NO_CHAINID
if self.MAX_U64 > tx_gas_limit:
self._tx_gas_limit = tx_gas_limit
Expand Down Expand Up @@ -174,7 +178,7 @@ def _prevalidate_account_sizes(emulator_json: dict):
if (not account_desc['code_size']) or (not account_desc['address']):
continue
if account_desc['code_size'] > ((9 * 1024 + 512) * 1024):
raise EthereumError(f"contract {self._account_desc['address']} " +
raise EthereumError(f"contract {account_desc['address']} " +
f"requests a size increase to more than 9.5Mb")


Expand Down