Skip to content

Commit

Permalink
docs: Add comment to initConsensusProtocols (#5791)
Browse files Browse the repository at this point in the history
  • Loading branch information
winder committed Oct 23, 2023
1 parent 40c16e5 commit b18a78e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,9 @@ func PreloadConfigurableConsensusProtocols(dataDirectory string) (ConsensusProto
return Consensus.Merge(configurableConsensus), nil
}

// initConsensusProtocols defines the consensus protocol values and how values change across different versions of the protocol.
//
// These are the only valid and tested consensus values and transitions. Other settings are not tested and may lead to unexpected behavior.
func initConsensusProtocols() {
// WARNING: copying a ConsensusParams by value into a new variable
// does not copy the ApprovedUpgrades map. Make sure that each new
Expand Down

0 comments on commit b18a78e

Please sign in to comment.