residual cleanup from https://github.com/status-im/nimbus-eth2/pull/5152 (#5181)
This commit is contained in:
parent
185684daf8
commit
174c33e5fa
|
@ -1394,7 +1394,7 @@ proc mixRandao(
|
|||
mix.data.mxor eth2digest(blck.message.body.randao_reveal.toRaw()).data
|
||||
ok()
|
||||
|
||||
proc computeRandaoMix*(
|
||||
proc computeRandaoMix(
|
||||
dag: ChainDAGRef, state: ForkyHashedBeaconState,
|
||||
blck: BlockRef, epoch: Epoch
|
||||
): Opt[tuple[dependentBid: BlockId, mix: Eth2Digest]] =
|
||||
|
@ -2115,7 +2115,7 @@ proc pruneStateCachesDAG*(dag: ChainDAGRef) =
|
|||
statePruneDur = statePruneTick - startTick,
|
||||
epochRefPruneDur = epochRefPruneTick - statePruneTick
|
||||
|
||||
proc pruneStep(horizon, lastHorizon, lastBlockHorizon: Slot):
|
||||
func pruneStep(horizon, lastHorizon, lastBlockHorizon: Slot):
|
||||
tuple[stateHorizon, blockHorizon: Slot] =
|
||||
## Compute a reasonable incremental pruning step considering the current
|
||||
## horizon, how far the database has been pruned already and where we want the
|
||||
|
@ -2640,7 +2640,7 @@ proc getProposalState*(
|
|||
|
||||
ok state
|
||||
|
||||
proc aggregateAll*(
|
||||
func aggregateAll*(
|
||||
dag: ChainDAGRef,
|
||||
validator_indices: openArray[ValidatorIndex]): Result[CookedPubKey, cstring] =
|
||||
if validator_indices.len == 0:
|
||||
|
@ -2665,7 +2665,7 @@ proc aggregateAll*(
|
|||
|
||||
ok(finish(aggregateKey))
|
||||
|
||||
proc aggregateAll*(
|
||||
func aggregateAll*(
|
||||
dag: ChainDAGRef,
|
||||
validator_indices: openArray[ValidatorIndex|uint64],
|
||||
bits: BitSeq | BitArray): Result[CookedPubKey, cstring] =
|
||||
|
|
Loading…
Reference in New Issue