Commit Graph

4 Commits

Author SHA1 Message Date
Kim De Mey dc092ca393
Add missing rlp imports to properple decode/encode blocks/bodies (#761)
Without these added transanction/header import/exports decoding
blocks or block bodies would fail if one only had imported
blocks_rlp.

Also removes unused import + add copyright comments in rlp code.
2024-11-20 12:15:34 +01:00
Jacek Sieka bb5cb6a4d0
rlp: refresh code (#683)
A first step in cleaning up RLP, which has lots of interesting issues -
the next step would be to clean up the exception handling as well
(Resultify?)

* remove `RlpNode` (unused)
* single-pass parsing for most functionality via RlpItem
* stricter conformance to spec
  * remove float support
  * warn about signed integers
  * raise on invalid RLP earlier
* avoid several pointless allocations, in particular in `listLen`,
`listElem` etc
* include spec docs
2024-05-26 09:58:24 +02:00
Jacek Sieka 1646d78d83
cleanups (#226) 2020-04-18 10:17:59 +02:00
Yuriy Glukhov 32998f0dc1 Moved rlp and trie to eth 2019-02-05 14:01:10 +02:00