Skip to content

Commit

Permalink
fix FNet protocols' ApprovedUpgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
tasosbit committed Oct 8, 2024
1 parent 0c465c1 commit 471d206
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildnumber.dat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
228813
228814
2 changes: 2 additions & 0 deletions config/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -1562,10 +1562,12 @@ func initConsensusProtocols() {
// vFNetX are like vAlphaX but for AF's FNet
// vFnet1
vFnet1 := vFuture
vFnet1.ApprovedUpgrades = map[protocol.ConsensusVersion]uint64{}
Consensus[protocol.ConsensusVFnet1] = vFnet1

// vFnet2 guards against a future change in block opcodes that the fnet1 client did not support. No change in parameters
vFnet2 := vFuture
vFnet2.ApprovedUpgrades = map[protocol.ConsensusVersion]uint64{}
Consensus[protocol.ConsensusVFnet2] = vFnet2
vFnet1.ApprovedUpgrades[protocol.ConsensusVFnet2] = 10000
}
Expand Down

0 comments on commit 471d206

Please sign in to comment.