report decimal produceBlockV3 consensus block, execution payload values (#5741)

This commit is contained in:
tersec 2024-01-14 21:59:08 +00:00 committed by GitHub
parent 5404178a40
commit 2c49caced9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -553,9 +553,10 @@ proc installValidatorApiHandlers*(router: var RestRouter, node: BeaconNode) =
else: else:
res.add("eth-execution-payload-blinded", "false") res.add("eth-execution-payload-blinded", "false")
if executionValue.isSome(): if executionValue.isSome():
res.add("eth-execution-payload-value", $(executionValue.get())) res.add(
"eth-execution-payload-value", toString(executionValue.get(), 10))
if consensusValue.isSome(): if consensusValue.isSome():
res.add("eth-consensus-block-value", $(consensusValue.get())) res.add("eth-consensus-block-value", toString(consensusValue.get(), 10))
res res
# https://ethereum.github.io/beacon-APIs/#/Validator/produceBlockV3 # https://ethereum.github.io/beacon-APIs/#/Validator/produceBlockV3