erigon
erigon copied to clipboard
rlp: keep only one lib
Current state:
- We have low-level functions in
erigon-lib/rlpandrlplibs (historically). Target is to use onlyrlppackage. - We have
txandtxpool/txtypes (2-nd is subset of 1st).
ToDo:
- [x] low-level functions in
rlp. Added:ReadBytes,MoreDataInList. By https://github.com/erigontech/erigon/pull/16036 and https://github.com/erigontech/erigon/pull/16067 - [x] unused new RLP package
erigon-lib/rlp2. removed. - [ ] Move TxPool to use
txtype (it will automatically userlppackage) - [ ] Add
rlpgenfrom geth (see #11116) - but we must change it - to adopt for existing Erigon's codebase. Don't loose our improvements. Rlpgen itself is small - likely easy to change. - [ ] rlpgen inhereted
- [ ] Get inspiration from Silkworm's RLP code
- [ ] Get inspiration from
MarshalJSONTo(*jsontext.Encoder) errorhttps://go.dev/blog/jsonv2-exp - [x] merge
erigon-libmodule into Erigon
another thing I would like to add is to add the ability to implement reusable buffers
TODO: merge rlp/encode.go & rlp/encode2.go.