log block number / fee recipient (#4294)

This commit is contained in:
Jacek Sieka 2022-11-07 23:16:47 +01:00 committed by GitHub
parent 0a43c89cd2
commit fae3ed5067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 4 deletions

View File

@ -623,7 +623,10 @@ func shortLog*(v: SomeBeaconBlock): auto =
attestations_len: v.body.attestations.len(), attestations_len: v.body.attestations.len(),
deposits_len: v.body.deposits.len(), deposits_len: v.body.deposits.len(),
voluntary_exits_len: v.body.voluntary_exits.len(), voluntary_exits_len: v.body.voluntary_exits.len(),
sync_committee_participants: countOnes(v.body.sync_aggregate.sync_committee_bits) sync_committee_participants:
countOnes(v.body.sync_aggregate.sync_committee_bits),
block_number: 0'u64, # Bellatrix compat
fee_recipient: "",
) )
func shortLog*(v: SomeSignedBeaconBlock): auto = func shortLog*(v: SomeSignedBeaconBlock): auto =

View File

@ -388,7 +388,11 @@ func shortLog*(v: SomeBeaconBlock): auto =
attestations_len: v.body.attestations.len(), attestations_len: v.body.attestations.len(),
deposits_len: v.body.deposits.len(), deposits_len: v.body.deposits.len(),
voluntary_exits_len: v.body.voluntary_exits.len(), voluntary_exits_len: v.body.voluntary_exits.len(),
sync_committee_participants: countOnes(v.body.sync_aggregate.sync_committee_bits) sync_committee_participants:
countOnes(v.body.sync_aggregate.sync_committee_bits),
block_number: v.body.execution_payload.block_number,
# TODO checksum hex? shortlog?
fee_recipient: to0xHex(v.body.execution_payload.fee_recipient.data),
) )
func shortLog*(v: SomeSignedBeaconBlock): auto = func shortLog*(v: SomeSignedBeaconBlock): auto =

View File

@ -377,7 +377,10 @@ func shortLog*(v: SomeBeaconBlock): auto =
attestations_len: v.body.attestations.len(), attestations_len: v.body.attestations.len(),
deposits_len: v.body.deposits.len(), deposits_len: v.body.deposits.len(),
voluntary_exits_len: v.body.voluntary_exits.len(), voluntary_exits_len: v.body.voluntary_exits.len(),
sync_committee_participants: countOnes(v.body.sync_aggregate.sync_committee_bits) sync_committee_participants:
countOnes(v.body.sync_aggregate.sync_committee_bits),
block_number: 0'u64, # Bellatrix compat
fee_recipient: "",
) )
func shortLog*(v: SomeSignedBeaconBlock): auto = func shortLog*(v: SomeSignedBeaconBlock): auto =

View File

@ -298,7 +298,9 @@ func shortLog*(v: SomeBeaconBlock): auto =
attestations_len: v.body.attestations.len(), attestations_len: v.body.attestations.len(),
deposits_len: v.body.deposits.len(), deposits_len: v.body.deposits.len(),
voluntary_exits_len: v.body.voluntary_exits.len(), voluntary_exits_len: v.body.voluntary_exits.len(),
sync_committee_participants: -1 # Altair logging compatibility sync_committee_participants: -1, # Altair logging compatibility
block_number: 0'u64, # Bellatrix compat
fee_recipient: "",
) )
func shortLog*(v: SomeSignedBeaconBlock): auto = func shortLog*(v: SomeSignedBeaconBlock): auto =