nim-eth/eth
jangko 67bbd88616
Replace exception with assertion in rlp.append of BlockHeader
Using exception in rlp.append turn out creates more problem than it solve.
`blockHash` operation is literally everywhere in nimbus-eth1, nimbus-eth2, and fluffy-code.
The compiler begins to complain about unlisted exception.
Rlp bytes coming from network and test vectors already verified by the decoder.
So, any invalid optional fields of blockheader that come into rlp.append means
programming error. Assertion will be more apropiate in this situation and less problematic.
2023-05-25 15:27:37 +07:00
..
common Replace exception with assertion in rlp.append of BlockHeader 2023-05-25 15:27:37 +07:00
db Remove all Defect raises to avoid unnecessary warnings (#607) 2023-05-10 15:50:04 +02:00
keyfile Remove all Defect raises to avoid unnecessary warnings (#607) 2023-05-10 15:50:04 +02:00
net nat.nim: breaking dependency with 'confutils' (#609) 2023-05-16 13:43:31 +02:00
p2p Remove all Defect raises to avoid unnecessary warnings (#607) 2023-05-10 15:50:04 +02:00
rlp Fix some typos (#557) 2022-11-16 17:44:00 +01:00
trie avoid ptr_arith (#608) 2023-05-11 07:39:21 +00:00
utp Remove all Defect raises to avoid unnecessary warnings (#607) 2023-05-10 15:50:04 +02:00
async_utils.nim awaitWithTimeout for Future[void] 2021-02-04 16:45:50 +02:00
bloom.nim clean up eth_types (#531) 2022-09-02 16:57:52 +02:00
common.nim clean up eth_types (#531) 2022-09-02 16:57:52 +02:00
eip1559.nim Add a helper for calculating the EIP1559 base fee 2022-08-18 23:36:45 +03:00
keyfile.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
keys.nim Remove all Defect raises to avoid unnecessary warnings (#607) 2023-05-10 15:50:04 +02:00
p2p.nim Remove all Defect raises to avoid unnecessary warnings (#607) 2023-05-10 15:50:04 +02:00
rlp.nim Fix some typos (#557) 2022-11-16 17:44:00 +01:00
trie.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00