Address review comments.
This commit is contained in:
parent
ddb83e318a
commit
a034d5c42d
|
@ -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),
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue