Skip to content

Commit

Permalink
Remove redundant F3Consensus build parameter (#12621)
Browse files Browse the repository at this point in the history
Upgrade to `go-f3` `v0.4.0` removed the option to disable checkpointing
by F3. As a result this build parameter no longer has any effect. Remove
it.

Relates to: #12547
  • Loading branch information
masih authored and rjan90 committed Oct 28, 2024
1 parent 921f331 commit 1d033fa
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions build/buildconstants/params_2k.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,3 @@ var F3ManifestServerID = MustParseID("12D3KooWHcNBkqXEBrsjoveQvj6zDF3vK5S9tAfqyY
var F3InitialPowerTableCID cid.Cid = cid.Undef

var F3BootstrapEpoch abi.ChainEpoch = 1000

// F3Consensus set whether F3 should checkpoint tipsets finalized by F3. This
// flag has no effect if F3 is not enabled.
const F3Consensus = true
4 changes: 0 additions & 4 deletions build/buildconstants/params_butterfly.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,3 @@ var F3ManifestServerID = MustParseID("12D3KooWJr9jy4ngtJNR7JC1xgLFra3DjEtyxskRYW
var F3InitialPowerTableCID cid.Cid = cid.Undef

const F3BootstrapEpoch abi.ChainEpoch = 1000

// F3Consensus set whether F3 should checkpoint tipsets finalized by F3. This
// flag has no effect if F3 is not enabled.
const F3Consensus = true
4 changes: 0 additions & 4 deletions build/buildconstants/params_calibnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,3 @@ var F3InitialPowerTableCID cid.Cid = cid.Undef

// Calibnet F3 activation epoch is 2024-10-24T13:30:00Z - Epoch 2081674
const F3BootstrapEpoch abi.ChainEpoch = UpgradeTuktukHeight + 2880

// F3Consensus set whether F3 should checkpoint tipsets finalized by F3. This
// flag has no effect if F3 is not enabled.
const F3Consensus = true
4 changes: 0 additions & 4 deletions build/buildconstants/params_interop.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,3 @@ var F3ManifestServerID = MustParseID("12D3KooWQJ2rdVnG4okDUB6yHQhAjNutGNemcM7Xzq
var F3InitialPowerTableCID cid.Cid = cid.Undef

const F3BootstrapEpoch abi.ChainEpoch = 1000

// F3Consensus set whether F3 should checkpoint tipsets finalized by F3. This
// flag has no effect if F3 is not enabled.
const F3Consensus = true
4 changes: 0 additions & 4 deletions build/buildconstants/params_mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,3 @@ var F3InitialPowerTableCID = cid.Undef

const F3Enabled = true
const F3BootstrapEpoch abi.ChainEpoch = -1

// F3Consensus set whether F3 should checkpoint tipsets finalized by F3. This
// flag has no effect if F3 is not enabled.
const F3Consensus = false
4 changes: 0 additions & 4 deletions build/buildconstants/params_testground.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ var (
F3ManifestServerID peer.ID = ""
F3BootstrapEpoch abi.ChainEpoch = -1
F3InitialPowerTableCID = cid.Undef

// F3Consensus set whether F3 should checkpoint tipsets finalized by F3. This
// flag has no effect if F3 is not enabled.
F3Consensus = true
)

func init() {
Expand Down

0 comments on commit 1d033fa

Please sign in to comment.