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:
Etan Kissling 2024-02-26 09:41:41 +01:00 committed by GitHub
parent fef831d92a
commit 00510a9d2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -4014,7 +4014,7 @@ proc decodeBytes*[T: ProduceBlockResponseV3](
Opt.none(Uint256)
else:
try:
Opt.some parse(headerPayloadValue, UInt256, 10)
Opt.some parse(headerConsensusValue, UInt256, 10)
except ValueError:
return err("Incorrect `Eth-Consensus-Block-Value` header value")
withConsensusFork(fork):