Skip to content

Commit

Permalink
chore: improve comments
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin McGaw <[email protected]>
  • Loading branch information
EclesioMeloJunior and qdm12 authored Apr 14, 2022
1 parent 1149c1f commit ac0bdd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot/state/epoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ func (s *EpochState) FinalizeBABENextConfigData(finalizedHeader *types.Header) e

// findFinalizedHeaderForEpoch given a specific epoch (the key) will go through the hashes looking
// for a database persisted hash (belonging to the finalized chain)
// which contains the right configuration to be persisted and safely used
// which contains the right configuration or data to be persisted and safely used
func findFinalizedHeaderForEpoch[T types.NextConfigData | types.NextEpochData](
nextEpochMap map[uint64]map[common.Hash]T, es *EpochState, epoch uint64) (next *T, err error) {
hashes, has := nextEpochMap[epoch]
Expand Down

0 comments on commit ac0bdd4

Please sign in to comment.