Skip to content

Test Transaction

Documentation for tests/frontier/validation/test_transaction.py@c17999c0.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/frontier/validation/test_transaction.py --fork Amsterdam

Test the transaction level validations applied from Frontier.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_bad_v_r_s state_test 20 The v/y_parity component of a signature must be 35 or greater (if it isn't
test_sender_balance blockchain_test 3 Tests that the sender has sufficient balance.
test_sender_balance_insufficient_state_test state_test 1 A legacy transaction from a sender that cannot afford gas * gasPrice
test_tx_gas_limit blockchain_test 1 Tests that if a tx gas limit is higher than the block gas limit,
test_tx_max_nonce state_test 1 Test that a transaction with the maximum nonce value (2**64 - 1) is
test_tx_nonce state_test 3 Tests that the tx nonce matches the account nonce.
test_tx_nonce_overflow transaction_test 1 Test that a transaction with a nonce that does not fit in 64 bits is