diff --git a/beacon_chain/consensus_object_pools/blockchain_dag.nim b/beacon_chain/consensus_object_pools/blockchain_dag.nim index c90844847..3cf1ffd53 100644 --- a/beacon_chain/consensus_object_pools/blockchain_dag.nim +++ b/beacon_chain/consensus_object_pools/blockchain_dag.nim @@ -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] =