Test Transaction RlpΒΆ
Documentation for tests/frontier/validation/test_transaction_rlp.py@49633827.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/frontier/validation/test_transaction_rlp.py --fork Amsterdam
Test Functions OverviewΒΆ
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_data_size_leading_zeros |
transaction_test | 1 | Encode the size of the data field's long-form string header with a |
test_field_as_list |
transaction_test | 7 | Encode one field as an RLP list instead of a byte string. |
test_field_leading_zeros |
transaction_test | 7 | Prefix one integer field's payload with a zero byte; the |
test_field_overflow |
transaction_test | 4 | Encode one integer field as a 33-byte value (2**256), exceeding the |
test_invalid_signature_values |
transaction_test | 5 | Replace a signature field with a well-encoded but invalid value:(ππ?) |
test_invalid_structure |
transaction_test | 8 | Corrupt the RLP structure of the whole transaction. |
test_non_canonical_single_byte |
transaction_test | 1 | Encode the single-byte nonce payload behind a one-byte string |
test_to_address_size |
transaction_test | 2 | Encode the to field with a truncated 19-byte address or a 21-byte |
test_valid_reencoded_transaction |
transaction_test | 1 | Verify the local field encoder reproduces the framework encoding |