XinFinOrg / XDPoSChain

Customer centric, Hybrid & Interoperable XinFin Network
https://www.xinfin.org
GNU Lesser General Public License v3.0
50 stars 59 forks source link

upgarde package rlp to 2024-05-15 #542

Closed gzliudan closed 1 month ago

gzliudan commented 1 month ago

Proposed changes

Upgrade package rlp to latest, include below PRs about rlp:

2024-04-23 all: fix various typos (#29600)
2024-04-09 rlp: replace reflect.PtrTo with reflect.PointerTo (#29488)
2024-04-02 rlp: using maps.Clone (#29434)
2024-03-21 all: use min/max/clear from go1.21 (#29307)
2024-03-05 rlp: using unsafe.Slice instead of SliceHeader (#29067)
2024-03-05 rlp: remove a moot todo (#29154)
2023-09-14 rlp/rlpgen: remove build tag (#28106)
2023-08-23 rlp: remove allocation of bytes.Reader in DecodeBytes (#27987)
2023-06-16 rlp: fix typos (#27484)
2023-06-07 rlp: use identical receiver names for encBuffer methods (#27430)
2023-03-24 rlp/rlpgen: print want/expect output string if mismatch (#26932)
2023-03-17 rlp: support for uint256 (#26898)
2022-11-17 rlp: improve tests for Split functions (#26200)
2022-11-07 p2p/discover: improve discv5 NODES response packing (#26033)
2022-11-02 rlp: add more tests for nil pointer / optional field encoding (#26077)
2022-10-04 all: fix docstrings
2022-09-10 build: upgrade to go 1.19 (#25726)
2022-08-19 rlp/rlpgen: fix error handling when target type not found (#25547)
2022-07-25 all: add whitespace linter (#25312)
2022-06-14 all: prefer `new(big.Int)` over `big.NewInt(0)` (#25087)
2022-06-13 all: more linters (#24783)
2022-05-24 all: update license headers and AUTHORS from git history (#24947)
2022-05-16 all: replace uses of ioutil with io and os (#24869)
2022-05-09 all: replace strings.Replace with string.ReplaceAll (#24835)
2022-03-29 rlp: fix typo in comment (#24595)
2022-03-09 rlp, trie: faster trie node encoding (#24126)
2022-02-24 rlp: add WriteString method on EncoderBuffer (#24425)
2022-02-16 rlp/rlpgen: RLP encoder code generator (#24251)
2021-10-19 all: fix warning flagging the use of DeepEqual on error (#23624)
2021-08-25 rlp: minor optimizations for slice/array encoding (#23467)
2021-08-25 all: add go:build lines (#23468)
2021-05-27 p2p/rlpx: reduce allocation and syscalls (#22899)
2021-05-25 rlp: optimize big.Int decoding for size <= 32 bytes (#22927)
2021-05-25 rlp, tests/fuzzers/bls12381: gofmt (#22937)
2021-05-22 rlp: optimize byte array handling (#22924)
2021-05-22 rlp: use atomic.Value for type cache (#22902)
2021-05-18 rlp: improve decoder stream implementation (#22858)
2021-05-07 rlp: add support for optional struct fields (#22832)
2021-03-16 core/rawdb: fix transaction indexing/unindexing hashing error (#22457)
2021-02-18 rlp: handle case of normal EOF in Stream.readFull (#22336)
2020-11-25 all: simplify nested complexity and if blocks ending with a return statement (#21854)
2020-11-04 core/types, rlp: optimize derivesha (#21728)
2020-09-14 rlp: add SplitUint64 (#21563)
2020-07-06 rlp: reduce allocations for big.Int and byte array encoding (#21291)
2020-07-01 rlp: avoid list header allocation in encoder (#21274)
2020-05-11 cmd, core, eth: background transaction indexing (#20302)
2019-11-25 rlp: fix staticcheck warnings (#20368)
2019-11-18 build: use golangci-lint (#20295)
2019-09-13 rlp: improve nil pointer handling (#20064)
2019-05-14 rlp: fixes for two corner cases and documentation (#19527)
2019-02-25 rlp: added pooling of streams using sync (#19044)

Types of changes

What types of changes does your code introduce to XDC network? Put an in the boxes that apply

Impacted Components

Which part of the codebase this PR will touch base on,

Put an in the boxes that apply

Checklist

Put an in the boxes once you have confirmed below actions (or provide reasons on not doing so) that

liam-lai commented 1 month ago

Is this RLP upgrade backward compatible or do we need to upgrade all the nodes together seems encode and decode all been upgrade.