test_tx_max_nonce()¶
Documentation for tests/frontier/validation/test_transaction.py::test_tx_max_nonce@5fa5938b.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/frontier/validation/test_transaction.py::test_tx_max_nonce --fork Amsterdam
Test that a transaction with the maximum nonce value (2**64 - 1) is
rejected, as the maximum usable nonce is 2**64 - 2.
The sender account is funded at the same nonce so that clients which check nonce equality first reach the max-nonce check instead of rejecting the transaction with a nonce mismatch.
Source code in tests/frontier/validation/test_transaction.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 16 forks.