Address review comments.

This commit is contained in:
cheatfate 2024-03-11 01:43:31 +02:00
parent ddb83e318a
commit a034d5c42d
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
2 changed files with 4 additions and 5 deletions

View File

@ -332,7 +332,7 @@ proc publishBlockV3(vc: ValidatorClientRef, currentSlot, slot: Slot,
)
debug "Block produced",
block_type = "normal",
block_type = "non-blinded",
block_root = shortLog(blockRoot),
blck = shortLog(maybeBlock),
execution_value = shortLog(maybeBlock.executionValue),

View File

@ -107,11 +107,10 @@ proc getValidator*(validators: auto,
Opt.some ValidatorAndIndex(index: ValidatorIndex(idx),
validator: validators[idx])
func blockConsensusValue(r: BlockRewards): UInt256 =
func blockConsensusValue(r: BlockRewards): UInt256 {.noinit.} =
# Returns value of `block-consensus-value` in Wei units.
(uint64(r.attestations) + uint64(r.sync_aggregate) +
uint64(r.proposer_slashings) +
uint64(r.attester_slashings)).u256 * 1000000000.u256
u256(r.attestations + r.sync_aggregate +
r.proposer_slashings + r.attester_slashings) * u256(1000000000)
proc addValidatorsFromWeb3Signer(
node: BeaconNode, web3signerUrl: Web3SignerUrl, epoch: Epoch)