log additional information about Deneb blinded blocks

This commit is contained in:
tersec 2023-10-30 21:01:33 +00:00
parent ab89e96265
commit 94d45822e3
No known key found for this signature in database
GPG Key ID: 3D7A11A0156519DC
1 changed files with 12 additions and 1 deletions

View File

@ -665,6 +665,12 @@ proc constructSignableBlindedBlock[T: deneb_mev.SignedBlindedBeaconBlockContents
assign(blindedBlock.message.body.blob_kzg_commitments, bbb.commitments)
info "FOO8",
htr_ePHC =
hash_tree_root(executionPayloadHeaderContents.execution_payload_header),
htr_bbEPH =
hash_tree_root(blindedBlock.message.body.execution_payload_header)
let blockRoot = hash_tree_root(blindedBlock.message)
if blindedBlockContents.signed_blinded_blob_sidecars.setLen(bbb.proofs.len):
@ -756,6 +762,11 @@ proc blindedBlockCheckSlashingAndSign[
.slashingProtection
.registerBlock(validator_index, validator.pubkey, slot, signingRoot)
info "Signing blinded Deneb block",
blockRoot = shortLog(blockRoot), blckShort = shortLog(nonsignedBlindedBlock),
signingRoot = shortLog(signingRoot), validator = validator.pubkey,
slot, validator_index, genesis_validators_root, fork
if notSlashable.isErr:
warn "Slashing protection activated for MEV block",
blockRoot = shortLog(blockRoot), blck = shortLog(nonsignedBlindedBlock),
@ -856,7 +867,7 @@ proc getBlindedBlockParts[
shimExecutionPayload.executionPayload,
executionPayloadHeader.get.blindedBlckPart, getFieldNames(EPH))
elif EPH is deneb_mev.ExecutionPayloadHeaderAndBlindedBlobsBundle:
type PayloadType = deneb.ExecutionPayloadForSigning
type PayloadType = deneb.ExecutionPayloadForSigning # has blob, etc, which builder api codepath ignores?
template actualEPH: untyped =
executionPayloadHeader.get.blindedBlckPart.execution_payload_header
let