nim-eth/tests
Kim De Mey 522db295f2
Fix RLP deserialzation for Enum with holes (#554)
RLP Enum deserialization would currently not check if "hole values"
were attempted to be converted to the enum type. Now use
checkedEnumAssign and fail with RlpTypeMismatch on invalid values.

There is at least one occurance of an enum with holes in rlpx p2p:
DisconnectionReason. For this enum the issue could occur.

Also:
- Added enum RLP tests and rlpx p2p disconnect message tests to
test the DisconnectionReason with enum hole value.
- Fixed worse custom DisconnectionReason decoding occurance
in rlpx in waitSingleMsg proc where this issue could occur.
2022-11-14 15:49:37 +01:00
..
common EIP-4399 changes: random -> prevRandao 2022-02-27 11:40:15 +07:00
db Add custom scalar functions to sqlite (#509) 2022-06-02 14:14:15 +02:00
fuzzing move eth1 specific code to where it belongs 2022-10-11 14:52:25 +07:00
keyfile Style fixes according to --styleCheck:usages (#452) 2021-12-20 13:14:50 +01:00
keys bearssl: use split api (#510) 2022-06-17 22:45:37 +02:00
p2p Fix RLP deserialzation for Enum with holes (#554) 2022-11-14 15:49:37 +01:00
rlp Fix RLP deserialzation for Enum with holes (#554) 2022-11-14 15:49:37 +01:00
trie Safer mpt proof verification (#536) 2022-09-14 19:02:05 +02:00
utp Default compile all tests and binaries with TRACE log level (#549) 2022-11-10 09:01:58 +01:00
nim.cfg Default compile all tests and binaries with TRACE log level (#549) 2022-11-10 09:01:58 +01:00
stubloglevel.nim Default compile all tests and binaries with TRACE log level (#549) 2022-11-10 09:01:58 +01:00
test_async_utils.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
test_bloom.nim CI: test with multiple Nim version (#429) 2021-12-11 19:12:55 +01:00