Remove local block body rlp fix (#1555)
* Remove local block body rlp fix why: Fix moved to `nim-eth` module * Update nim-eth bumper
This commit is contained in:
parent
21ef655b9c
commit
0387afb7b1
|
@ -46,16 +46,6 @@ const
|
|||
maxReceiptsFetch* = 256
|
||||
maxHeadersFetch* = 192
|
||||
|
||||
|
||||
# Kludge, should be fixed in `eth/common/eth_types_rlp.append()`
|
||||
proc ethAppend*(w: var RlpWriter, b: BlockBody) =
|
||||
w.startList 2 + b.withdrawals.isSome.ord # <--- this line was missing
|
||||
w.append(b.transactions)
|
||||
w.append(b.uncles)
|
||||
if b.withdrawals.isSome:
|
||||
w.append(b.withdrawals.unsafeGet)
|
||||
|
||||
|
||||
proc notImplemented(name: string) =
|
||||
debug "Method not implemented", meth = name
|
||||
|
||||
|
|
|
@ -76,10 +76,6 @@ const
|
|||
trEthSendNewBlockHashes* =
|
||||
">> " & prettyEthProtoName & " Sending NewBlockHashes"
|
||||
|
||||
# Kludge, should be fixed in `eth/common/eth_types_rlp`
|
||||
proc append(w: var RlpWriter, b: BlockBody) =
|
||||
w.ethAppend b
|
||||
|
||||
p2pProtocol eth66(version = ethVersion,
|
||||
rlpxName = "eth",
|
||||
peerState = EthPeerState,
|
||||
|
|
|
@ -76,10 +76,6 @@ const
|
|||
trEthSendNewBlockHashes* =
|
||||
">> " & prettyEthProtoName & " Sending NewBlockHashes"
|
||||
|
||||
# Kludge, should be fixed in `eth/common/eth_types_rlp`
|
||||
proc append(w: var RlpWriter, b: BlockBody) =
|
||||
w.ethAppend b
|
||||
|
||||
p2pProtocol eth67(version = ethVersion,
|
||||
rlpxName = "eth",
|
||||
peerState = EthPeerState,
|
||||
|
|
|
@ -33,11 +33,6 @@ var
|
|||
# Private helpers for `test_calcAccountsListSizes()`
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Kludge, should be fixed in `eth/common/eth_types_rlp`
|
||||
proc append(w: var RlpWriter, b: BlockBody) =
|
||||
## helper for ` test_calcBlockBodyTranscode()`
|
||||
w.ethAppend b
|
||||
|
||||
proc `==`(a,b: ChainId): bool {.borrow.}
|
||||
## helper for ` test_calcBlockBodyTranscode()`
|
||||
|
||||
|
@ -188,7 +183,6 @@ proc test_calcTrieNodeTranscode*() =
|
|||
proc test_calcBlockBodyTranscode*() =
|
||||
## RLP encode/decode a list of `BlockBody` objects. Note that tere is/was a
|
||||
## problem in `eth/common/eth_types_rlp.append()` for `BlockBody` encoding.
|
||||
## This has been fixed temporarily via `protocol/eth/eth_types.ethAppend()`.
|
||||
let blkSeq = @[
|
||||
BlockBody(
|
||||
transactions: @[
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 25b0da02801a216fe7fc8cba5aaf0d5c0138e267
|
||||
Subproject commit 9a1d35f803d4ae2bda0ede2356cc3213977a3d60
|
Loading…
Reference in New Issue