Skip to content

Commit

Permalink
add epoch counter comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kc1116 committed Apr 26, 2024
1 parent a4943ec commit 4c0dcf7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions contracts/epochs/FlowEpoch.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -590,18 +590,19 @@ access(all) contract FlowEpoch {
}

if FlowEpoch.currentEpochPhase == EpochPhase.STAKINGAUCTION {
// Since we are resetting the epoch, we do not need to
// start epoch setup also. We only need to end the staking auction
/// Since we are resetting the epoch, we do not need to
/// start epoch setup also. We only need to end the staking auction
FlowEpoch.borrowStakingAdmin().endStakingAuction()
} else {
// force reset the QC and DKG
/// force reset the QC and DKG
FlowEpoch.borrowClusterQCAdmin().forceStopVoting()
FlowEpoch.borrowDKGAdmin().forceEndDKG()
}

// Create new Epoch metadata for the next epoch
// with the new values
/// Create new Epoch metadata for the next epoch
/// with the new values
let newEpochMetadata = EpochMetadata(
//
counter: FlowEpoch.proposedEpochCounter(),
seed: randomSource,
startView: startView,
Expand Down

0 comments on commit 4c0dcf7

Please sign in to comment.