mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-18 09:27:05 +00:00
fix Eth-Consensus-Block-Value
reading (#5964)
Fix regression from #5842 where `Eth-Execution-Payload-Value` is parsed into `consensusValue` instead of `Eth-consensus-Block-Value`. We don't use those values for now, but fixing avoids hard-to-debug bugs later.
This commit is contained in:
parent
fef831d92a
commit
00510a9d2f
@ -4014,7 +4014,7 @@ proc decodeBytes*[T: ProduceBlockResponseV3](
|
|||||||
Opt.none(Uint256)
|
Opt.none(Uint256)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
Opt.some parse(headerPayloadValue, UInt256, 10)
|
Opt.some parse(headerConsensusValue, UInt256, 10)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return err("Incorrect `Eth-Consensus-Block-Value` header value")
|
return err("Incorrect `Eth-Consensus-Block-Value` header value")
|
||||||
withConsensusFork(fork):
|
withConsensusFork(fork):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user