Test Transaction¶
Documentation for tests/frontier/validation/test_transaction.py@02aafd78.
Generate fixtures for these test cases for Bogota with:
fill -v tests/frontier/validation/test_transaction.py --fork Bogota
Test Functions Overview¶
| Name | Type | Cases (Bogota) | 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_allowance_after_larger_tx |
blockchain_test | 2 | A transaction must fit the gas the block has left after the ones before |
test_tx_gas_limit |
blockchain_test | 1 | Tests that if a tx gas limit is higher than the block gas limit, |
test_tx_invalid_first_in_block |
blockchain_test | 2 | The first transaction of a block is invalid and the valid one after it |
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 |
test_unrecoverable_signature |
state_test | 3 | A signature whose components are each individually in range but which |