mirror of https://github.com/status-im/nim-eth.git
67bbd88616
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. |
||
---|---|---|
.. | ||
common | ||
db | ||
fuzzing | ||
keyfile | ||
keys | ||
p2p | ||
rlp | ||
trie | ||
utp | ||
nim.cfg | ||
stubloglevel.nim | ||
test_async_utils.nim | ||
test_bloom.nim |