mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-24 12:18:32 +00:00
log block number / fee recipient (#4294)
This commit is contained in:
parent
0a43c89cd2
commit
fae3ed5067
@ -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 =
|
||||||
|
@ -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 =
|
||||||
|
@ -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 =
|
||||||
|
@ -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 =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user