Skip to content

Commit 1bc8a8b

Browse files
ribasushiaarshkshah1992
authored andcommitted
chore: remove (deprecated) deps on build/ proxy-constants
This is a large diff, yet should have exactly zero functional changes Ideally as a result of this some parts of the depchain will become lighter, with downstream reaping the same benefits as the team that initiated this split. P.S. work was done while forming better intuition of current dependency graph
1 parent 2933cba commit 1bc8a8b

File tree

142 files changed

+620
-599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+620
-599
lines changed

api/docgen/docgen.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
"github.com/filecoin-project/lotus/api"
3737
apitypes "github.com/filecoin-project/lotus/api/types"
3838
"github.com/filecoin-project/lotus/api/v0api"
39-
"github.com/filecoin-project/lotus/build"
39+
"github.com/filecoin-project/lotus/build/buildconstants"
4040
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"
4141
"github.com/filecoin-project/lotus/chain/types"
4242
"github.com/filecoin-project/lotus/chain/types/ethtypes"
@@ -123,7 +123,7 @@ func init() {
123123
addExample(time.Minute)
124124

125125
addExample(network.ReachabilityPublic)
126-
addExample(build.TestNetworkVersion)
126+
addExample(buildconstants.TestNetworkVersion)
127127
allocationId := verifreg.AllocationId(0)
128128
addExample(allocationId)
129129
addExample(&allocationId)

blockstore/splitstore/splitstore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/filecoin-project/go-state-types/abi"
2121

2222
bstore "github.com/filecoin-project/lotus/blockstore"
23-
"github.com/filecoin-project/lotus/build"
23+
"github.com/filecoin-project/lotus/chain/actors/policy"
2424
"github.com/filecoin-project/lotus/chain/stmgr"
2525
"github.com/filecoin-project/lotus/chain/types"
2626
"github.com/filecoin-project/lotus/metrics"
@@ -59,7 +59,7 @@ var (
5959
enableDebugLogWriteTraces = false
6060

6161
// upgradeBoundary is the boundary before and after an upgrade where we suppress compaction
62-
upgradeBoundary = build.Finality
62+
upgradeBoundary = policy.ChainFinality
6363
)
6464

6565
type CompactType int

blockstore/splitstore/splitstore_compact.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121
"github.com/filecoin-project/go-state-types/abi"
2222

23-
"github.com/filecoin-project/lotus/build"
23+
"github.com/filecoin-project/lotus/chain/actors/policy"
2424
"github.com/filecoin-project/lotus/chain/types"
2525
"github.com/filecoin-project/lotus/metrics"
2626
)
@@ -39,11 +39,11 @@ var (
3939
// === :: cold (already archived)
4040
// ≡≡≡ :: to be archived in this compaction
4141
// --- :: hot
42-
CompactionThreshold = 5 * build.Finality
42+
CompactionThreshold = 5 * policy.ChainFinality
4343

4444
// CompactionBoundary is the number of epochs from the current epoch at which
4545
// we will walk the chain for live objects.
46-
CompactionBoundary = 4 * build.Finality
46+
CompactionBoundary = 4 * policy.ChainFinality
4747

4848
// SyncGapTime is the time delay from a tipset's min timestamp before we decide
4949
// there is a sync gap
@@ -551,7 +551,7 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error {
551551
boundaryEpoch := currentEpoch - CompactionBoundary
552552

553553
var inclMsgsEpoch abi.ChainEpoch
554-
inclMsgsRange := abi.ChainEpoch(s.cfg.HotStoreMessageRetention) * build.Finality
554+
inclMsgsRange := abi.ChainEpoch(s.cfg.HotStoreMessageRetention) * policy.ChainFinality
555555
if inclMsgsRange < boundaryEpoch {
556556
inclMsgsEpoch = boundaryEpoch - inclMsgsRange
557557
}

blockstore/splitstore/splitstore_prune.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
"github.com/filecoin-project/lotus/api"
1818
bstore "github.com/filecoin-project/lotus/blockstore"
19-
"github.com/filecoin-project/lotus/build"
19+
"github.com/filecoin-project/lotus/chain/actors/policy"
2020
"github.com/filecoin-project/lotus/chain/types"
2121
"github.com/filecoin-project/lotus/metrics"
2222
)
@@ -44,7 +44,7 @@ var (
4444

4545
// PruneThreshold is the number of epochs that need to have elapsed
4646
// from the previously pruned epoch to trigger a new prune
47-
PruneThreshold = 7 * build.Finality
47+
PruneThreshold = 7 * policy.ChainFinality
4848
)
4949

5050
// GCHotStore runs online GC on the chain state in the hotstore according the to options specified
@@ -79,7 +79,7 @@ func (s *SplitStore) PruneChain(opts api.PruneOpts) error {
7979
switch {
8080
case retainState > 0:
8181
retainStateP = func(depth int64) bool {
82-
return depth <= int64(CompactionBoundary)+retainState*int64(build.Finality)
82+
return depth <= int64(CompactionBoundary)+retainState*int64(policy.ChainFinality)
8383
}
8484
case retainState < 0:
8585
retainStateP = func(_ int64) bool { return true }

blockstore/splitstore/splitstore_warmup.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import (
1212

1313
"github.com/filecoin-project/go-state-types/abi"
1414

15-
"github.com/filecoin-project/lotus/build"
15+
"github.com/filecoin-project/lotus/chain/actors/policy"
1616
"github.com/filecoin-project/lotus/chain/types"
1717
)
1818

1919
var (
2020
// WarmupBoundary is the number of epochs to load state during warmup.
21-
WarmupBoundary = build.Finality
21+
WarmupBoundary = policy.ChainFinality
2222
)
2323

2424
// warmup acquires the compaction lock and spawns a goroutine to warm up the hotstore;

build/buildconstants/params_mainnet.go

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -32,89 +32,89 @@ const GenesisNetworkVersion = network.Version0
3232
const BootstrappersFile = "mainnet.pi"
3333
const GenesisFile = "mainnet.car"
3434

35-
const UpgradeBreezeHeight = 41280
35+
const UpgradeBreezeHeight abi.ChainEpoch = 41280
3636

37-
const BreezeGasTampingDuration = 120
37+
const BreezeGasTampingDuration abi.ChainEpoch = 120
3838

39-
const UpgradeSmokeHeight = 51000
39+
const UpgradeSmokeHeight abi.ChainEpoch = 51000
4040

41-
const UpgradeIgnitionHeight = 94000
42-
const UpgradeRefuelHeight = 130800
41+
const UpgradeIgnitionHeight abi.ChainEpoch = 94000
42+
const UpgradeRefuelHeight abi.ChainEpoch = 130800
4343

44-
const UpgradeAssemblyHeight = 138720
44+
const UpgradeAssemblyHeight abi.ChainEpoch = 138720
4545

46-
const UpgradeTapeHeight = 140760
46+
const UpgradeTapeHeight abi.ChainEpoch = 140760
4747

4848
// This signals our tentative epoch for mainnet launch. Can make it later, but not earlier.
4949
// Miners, clients, developers, custodians all need time to prepare.
5050
// We still have upgrades and state changes to do, but can happen after signaling timing here.
51-
const UpgradeLiftoffHeight = 148888
51+
const UpgradeLiftoffHeight abi.ChainEpoch = 148888
5252

53-
const UpgradeKumquatHeight = 170000
53+
const UpgradeKumquatHeight abi.ChainEpoch = 170000
5454

55-
const UpgradeCalicoHeight = 265200
56-
const UpgradePersianHeight = UpgradeCalicoHeight + (builtin2.EpochsInHour * 60)
55+
const UpgradeCalicoHeight abi.ChainEpoch = 265200
56+
const UpgradePersianHeight abi.ChainEpoch = UpgradeCalicoHeight + (builtin2.EpochsInHour * 60)
5757

58-
const UpgradeOrangeHeight = 336458
58+
const UpgradeOrangeHeight abi.ChainEpoch = 336458
5959

6060
// 2020-12-22T02:00:00Z
6161
// var because of wdpost_test.go
62-
var UpgradeClausHeight = abi.ChainEpoch(343200)
62+
var UpgradeClausHeight abi.ChainEpoch = 343200
6363

6464
// 2021-03-04T00:00:30Z
65-
const UpgradeTrustHeight = 550321
65+
const UpgradeTrustHeight abi.ChainEpoch = 550321
6666

6767
// 2021-04-12T22:00:00Z
68-
const UpgradeNorwegianHeight = 665280
68+
const UpgradeNorwegianHeight abi.ChainEpoch = 665280
6969

7070
// 2021-04-29T06:00:00Z
71-
const UpgradeTurboHeight = 712320
71+
const UpgradeTurboHeight abi.ChainEpoch = 712320
7272

7373
// 2021-06-30T22:00:00Z
74-
const UpgradeHyperdriveHeight = 892800
74+
const UpgradeHyperdriveHeight abi.ChainEpoch = 892800
7575

7676
// 2021-10-26T13:30:00Z
77-
const UpgradeChocolateHeight = 1231620
77+
const UpgradeChocolateHeight abi.ChainEpoch = 1231620
7878

7979
// 2022-03-01T15:00:00Z
80-
const UpgradeOhSnapHeight = 1594680
80+
const UpgradeOhSnapHeight abi.ChainEpoch = 1594680
8181

8282
// 2022-07-06T14:00:00Z
83-
const UpgradeSkyrHeight = 1960320
83+
const UpgradeSkyrHeight abi.ChainEpoch = 1960320
8484

8585
// 2022-11-30T14:00:00Z
86-
const UpgradeSharkHeight = 2383680
86+
const UpgradeSharkHeight abi.ChainEpoch = 2383680
8787

8888
// 2023-03-14T15:14:00Z
89-
const UpgradeHyggeHeight = 2683348
89+
const UpgradeHyggeHeight abi.ChainEpoch = 2683348
9090

9191
// 2023-04-27T13:00:00Z
92-
const UpgradeLightningHeight = 2809800
92+
const UpgradeLightningHeight abi.ChainEpoch = 2809800
9393

9494
// 2023-05-18T13:00:00Z
95-
const UpgradeThunderHeight = UpgradeLightningHeight + 2880*21
95+
const UpgradeThunderHeight abi.ChainEpoch = UpgradeLightningHeight + 2880*21
9696

9797
// 2023-12-12T13:30:00Z
98-
const UpgradeWatermelonHeight = 3469380
98+
const UpgradeWatermelonHeight abi.ChainEpoch = 3469380
9999

100100
// 2024-04-24T14:00:00Z
101-
const UpgradeDragonHeight = 3855360
101+
const UpgradeDragonHeight abi.ChainEpoch = 3855360
102102

103103
// This epoch, 120 epochs after the "rest" of the nv22 upgrade, is when we switch to Drand quicknet
104104
// 2024-04-11T15:00:00Z
105-
const UpgradePhoenixHeight = UpgradeDragonHeight + 120
105+
const UpgradePhoenixHeight abi.ChainEpoch = UpgradeDragonHeight + 120
106106

107107
// ??????
108-
var UpgradeWaffleHeight = abi.ChainEpoch(9999999999)
108+
var UpgradeWaffleHeight abi.ChainEpoch = 9999999999
109109

110110
// This fix upgrade only ran on calibrationnet
111-
const UpgradeWatermelonFixHeight = -1
111+
const UpgradeWatermelonFixHeight abi.ChainEpoch = -1
112112

113113
// This fix upgrade only ran on calibrationnet
114-
const UpgradeWatermelonFix2Height = -2
114+
const UpgradeWatermelonFix2Height abi.ChainEpoch = -2
115115

116116
// This fix upgrade only ran on calibrationnet
117-
const UpgradeCalibrationDragonFixHeight = -3
117+
const UpgradeCalibrationDragonFixHeight abi.ChainEpoch = -3
118118

119119
var SupportedProofTypes = []abi.RegisteredSealProof{
120120
abi.RegisteredSealProof_StackedDrg32GiBV1,

build/builtin_actors.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
actorstypes "github.com/filecoin-project/go-state-types/actors"
2222

2323
"github.com/filecoin-project/lotus/blockstore"
24+
"github.com/filecoin-project/lotus/build/buildconstants"
2425
"github.com/filecoin-project/lotus/chain/actors"
2526
"github.com/filecoin-project/lotus/chain/actors/adt"
2627
)
@@ -39,13 +40,13 @@ func init() {
3940
}
4041
BundleOverrides[actorstypes.Version(av)] = path
4142
}
42-
if err := loadManifests(NetworkBundle); err != nil {
43+
if err := loadManifests(buildconstants.NetworkBundle); err != nil {
4344
panic(err)
4445
}
4546

4647
// The following code cid existed temporarily on the calibnet testnet, as a "buggy" storage miner actor implementation.
4748
// We include them in our builtin bundle, but intentionally omit from metadata.
48-
if NetworkBundle == "calibrationnet" {
49+
if buildconstants.NetworkBundle == "calibrationnet" {
4950
actors.AddActorMeta("storageminer", cid.MustParse("bafk2bzacecnh2ouohmonvebq7uughh4h3ppmg4cjsk74dzxlbbtlcij4xbzxq"), actorstypes.Version12)
5051
actors.AddActorMeta("storageminer", cid.MustParse("bafk2bzaced7emkbbnrewv5uvrokxpf5tlm4jslu2jsv77ofw2yqdglg657uie"), actorstypes.Version12)
5152
actors.AddActorMeta("verifiedregistry", cid.MustParse("bafk2bzacednskl3bykz5qpo54z2j2p4q44t5of4ktd6vs6ymmg2zebsbxazkm"), actorstypes.Version13)
@@ -54,13 +55,13 @@ func init() {
5455

5556
// UseNetworkBundle switches to a different network bundle, by name.
5657
func UseNetworkBundle(netw string) error {
57-
if NetworkBundle == netw {
58+
if buildconstants.NetworkBundle == netw {
5859
return nil
5960
}
6061
if err := loadManifests(netw); err != nil {
6162
return err
6263
}
63-
NetworkBundle = netw
64+
buildconstants.NetworkBundle = netw
6465
return nil
6566
}
6667

build/limits.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

build/parameters.go

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package build
22

33
import (
4-
"github.com/filecoin-project/go-state-types/abi"
54
actorstypes "github.com/filecoin-project/go-state-types/actors"
65

76
"github.com/filecoin-project/lotus/build/buildconstants"
@@ -26,46 +25,46 @@ var IsNearUpgrade = buildconstants.IsNearUpgrade // Deprecated: Use buildconstan
2625

2726
var GenesisNetworkVersion = buildconstants.GenesisNetworkVersion // Deprecated: Use buildconstants.GenesisNetworkVersion instead
2827

29-
var UpgradeBreezeHeight abi.ChainEpoch = buildconstants.UpgradeBreezeHeight // Deprecated: Use buildconstants.UpgradeBreezeHeight instead
28+
var UpgradeBreezeHeight = buildconstants.UpgradeBreezeHeight // Deprecated: Use buildconstants.UpgradeBreezeHeight instead
3029

31-
var BreezeGasTampingDuration abi.ChainEpoch = buildconstants.BreezeGasTampingDuration // Deprecated: Use buildconstants.BreezeGasTampingDuration instead
30+
var BreezeGasTampingDuration = buildconstants.BreezeGasTampingDuration // Deprecated: Use buildconstants.BreezeGasTampingDuration instead
3231

3332
// upgrade heights
34-
var UpgradeSmokeHeight abi.ChainEpoch = buildconstants.UpgradeSmokeHeight // Deprecated: Use buildconstants.UpgradeSmokeHeight instead
35-
var UpgradeIgnitionHeight abi.ChainEpoch = buildconstants.UpgradeIgnitionHeight // Deprecated: Use buildconstants.UpgradeIgnitionHeight instead
36-
var UpgradeRefuelHeight abi.ChainEpoch = buildconstants.UpgradeRefuelHeight // Deprecated: Use buildconstants.UpgradeRefuelHeight instead
37-
var UpgradeTapeHeight abi.ChainEpoch = buildconstants.UpgradeTapeHeight // Deprecated: Use buildconstants.UpgradeTapeHeight instead
38-
var UpgradeAssemblyHeight abi.ChainEpoch = buildconstants.UpgradeAssemblyHeight // Deprecated: Use buildconstants.UpgradeAssemblyHeight instead
39-
var UpgradeLiftoffHeight abi.ChainEpoch = buildconstants.UpgradeLiftoffHeight // Deprecated: Use buildconstants.UpgradeLiftoffHeight instead
40-
var UpgradeKumquatHeight abi.ChainEpoch = buildconstants.UpgradeKumquatHeight // Deprecated: Use buildconstants.UpgradeKumquatHeight instead
41-
var UpgradeCalicoHeight abi.ChainEpoch = buildconstants.UpgradeCalicoHeight // Deprecated: Use buildconstants.UpgradeCalicoHeight instead
42-
var UpgradePersianHeight abi.ChainEpoch = buildconstants.UpgradePersianHeight // Deprecated: Use buildconstants.UpgradePersianHeight instead
43-
var UpgradeOrangeHeight abi.ChainEpoch = buildconstants.UpgradeOrangeHeight // Deprecated: Use buildconstants.UpgradeOrangeHeight instead
44-
var UpgradeClausHeight abi.ChainEpoch = buildconstants.UpgradeClausHeight // Deprecated: Use buildconstants.UpgradeClausHeight instead
45-
var UpgradeTrustHeight abi.ChainEpoch = buildconstants.UpgradeTrustHeight // Deprecated: Use buildconstants.UpgradeTrustHeight instead
46-
var UpgradeNorwegianHeight abi.ChainEpoch = buildconstants.UpgradeNorwegianHeight // Deprecated: Use buildconstants.UpgradeNorwegianHeight instead
47-
var UpgradeTurboHeight abi.ChainEpoch = buildconstants.UpgradeTurboHeight // Deprecated: Use buildconstants.UpgradeTurboHeight instead
48-
var UpgradeHyperdriveHeight abi.ChainEpoch = buildconstants.UpgradeHyperdriveHeight // Deprecated: Use buildconstants.UpgradeHyperdriveHeight instead
49-
var UpgradeChocolateHeight abi.ChainEpoch = buildconstants.UpgradeChocolateHeight // Deprecated: Use buildconstants.UpgradeChocolateHeight instead
50-
var UpgradeOhSnapHeight abi.ChainEpoch = buildconstants.UpgradeOhSnapHeight // Deprecated: Use buildconstants.UpgradeOhSnapHeight instead
51-
var UpgradeSkyrHeight abi.ChainEpoch = buildconstants.UpgradeSkyrHeight // Deprecated: Use buildconstants.UpgradeSkyrHeight instead
52-
var UpgradeSharkHeight abi.ChainEpoch = buildconstants.UpgradeSharkHeight // Deprecated: Use buildconstants.UpgradeSharkHeight instead
53-
var UpgradeHyggeHeight abi.ChainEpoch = buildconstants.UpgradeHyggeHeight // Deprecated: Use buildconstants.UpgradeHyggeHeight instead
54-
var UpgradeLightningHeight abi.ChainEpoch = buildconstants.UpgradeLightningHeight // Deprecated: Use buildconstants.UpgradeLightningHeight instead
55-
var UpgradeThunderHeight abi.ChainEpoch = buildconstants.UpgradeThunderHeight // Deprecated: Use buildconstants.UpgradeThunderHeight instead
56-
var UpgradeWatermelonHeight abi.ChainEpoch = buildconstants.UpgradeWatermelonHeight // Deprecated: Use buildconstants.UpgradeWatermelonHeight instead
57-
var UpgradeDragonHeight abi.ChainEpoch = buildconstants.UpgradeDragonHeight // Deprecated: Use buildconstants.UpgradeDragonHeight instead
58-
var UpgradePhoenixHeight abi.ChainEpoch = buildconstants.UpgradePhoenixHeight // Deprecated: Use buildconstants.UpgradePhoenixHeight instead
59-
var UpgradeWaffleHeight abi.ChainEpoch = buildconstants.UpgradeWaffleHeight // Deprecated: Use buildconstants.UpgradeWaffleHeight instead
33+
var UpgradeSmokeHeight = buildconstants.UpgradeSmokeHeight // Deprecated: Use buildconstants.UpgradeSmokeHeight instead
34+
var UpgradeIgnitionHeight = buildconstants.UpgradeIgnitionHeight // Deprecated: Use buildconstants.UpgradeIgnitionHeight instead
35+
var UpgradeRefuelHeight = buildconstants.UpgradeRefuelHeight // Deprecated: Use buildconstants.UpgradeRefuelHeight instead
36+
var UpgradeTapeHeight = buildconstants.UpgradeTapeHeight // Deprecated: Use buildconstants.UpgradeTapeHeight instead
37+
var UpgradeAssemblyHeight = buildconstants.UpgradeAssemblyHeight // Deprecated: Use buildconstants.UpgradeAssemblyHeight instead
38+
var UpgradeLiftoffHeight = buildconstants.UpgradeLiftoffHeight // Deprecated: Use buildconstants.UpgradeLiftoffHeight instead
39+
var UpgradeKumquatHeight = buildconstants.UpgradeKumquatHeight // Deprecated: Use buildconstants.UpgradeKumquatHeight instead
40+
var UpgradeCalicoHeight = buildconstants.UpgradeCalicoHeight // Deprecated: Use buildconstants.UpgradeCalicoHeight instead
41+
var UpgradePersianHeight = buildconstants.UpgradePersianHeight // Deprecated: Use buildconstants.UpgradePersianHeight instead
42+
var UpgradeOrangeHeight = buildconstants.UpgradeOrangeHeight // Deprecated: Use buildconstants.UpgradeOrangeHeight instead
43+
var UpgradeClausHeight = buildconstants.UpgradeClausHeight // Deprecated: Use buildconstants.UpgradeClausHeight instead
44+
var UpgradeTrustHeight = buildconstants.UpgradeTrustHeight // Deprecated: Use buildconstants.UpgradeTrustHeight instead
45+
var UpgradeNorwegianHeight = buildconstants.UpgradeNorwegianHeight // Deprecated: Use buildconstants.UpgradeNorwegianHeight instead
46+
var UpgradeTurboHeight = buildconstants.UpgradeTurboHeight // Deprecated: Use buildconstants.UpgradeTurboHeight instead
47+
var UpgradeHyperdriveHeight = buildconstants.UpgradeHyperdriveHeight // Deprecated: Use buildconstants.UpgradeHyperdriveHeight instead
48+
var UpgradeChocolateHeight = buildconstants.UpgradeChocolateHeight // Deprecated: Use buildconstants.UpgradeChocolateHeight instead
49+
var UpgradeOhSnapHeight = buildconstants.UpgradeOhSnapHeight // Deprecated: Use buildconstants.UpgradeOhSnapHeight instead
50+
var UpgradeSkyrHeight = buildconstants.UpgradeSkyrHeight // Deprecated: Use buildconstants.UpgradeSkyrHeight instead
51+
var UpgradeSharkHeight = buildconstants.UpgradeSharkHeight // Deprecated: Use buildconstants.UpgradeSharkHeight instead
52+
var UpgradeHyggeHeight = buildconstants.UpgradeHyggeHeight // Deprecated: Use buildconstants.UpgradeHyggeHeight instead
53+
var UpgradeLightningHeight = buildconstants.UpgradeLightningHeight // Deprecated: Use buildconstants.UpgradeLightningHeight instead
54+
var UpgradeThunderHeight = buildconstants.UpgradeThunderHeight // Deprecated: Use buildconstants.UpgradeThunderHeight instead
55+
var UpgradeWatermelonHeight = buildconstants.UpgradeWatermelonHeight // Deprecated: Use buildconstants.UpgradeWatermelonHeight instead
56+
var UpgradeDragonHeight = buildconstants.UpgradeDragonHeight // Deprecated: Use buildconstants.UpgradeDragonHeight instead
57+
var UpgradePhoenixHeight = buildconstants.UpgradePhoenixHeight // Deprecated: Use buildconstants.UpgradePhoenixHeight instead
58+
var UpgradeWaffleHeight = buildconstants.UpgradeWaffleHeight // Deprecated: Use buildconstants.UpgradeWaffleHeight instead
6059

6160
// This fix upgrade only ran on calibrationnet
62-
var UpgradeWatermelonFixHeight abi.ChainEpoch = buildconstants.UpgradeWatermelonFixHeight // Deprecated: Use buildconstants.UpgradeWatermelonFixHeight instead
61+
var UpgradeWatermelonFixHeight = buildconstants.UpgradeWatermelonFixHeight // Deprecated: Use buildconstants.UpgradeWatermelonFixHeight instead
6362

6463
// This fix upgrade only ran on calibrationnet
65-
var UpgradeWatermelonFix2Height abi.ChainEpoch = buildconstants.UpgradeWatermelonFix2Height // Deprecated: Use buildconstants.UpgradeWatermelonFix2Height instead
64+
var UpgradeWatermelonFix2Height = buildconstants.UpgradeWatermelonFix2Height // Deprecated: Use buildconstants.UpgradeWatermelonFix2Height instead
6665

6766
// This fix upgrade only ran on calibrationnet
68-
var UpgradeCalibrationDragonFixHeight abi.ChainEpoch = buildconstants.UpgradeCalibrationDragonFixHeight // Deprecated: Use buildconstants.UpgradeCalibrationDragonFixHeight instead
67+
var UpgradeCalibrationDragonFixHeight = buildconstants.UpgradeCalibrationDragonFixHeight // Deprecated: Use buildconstants.UpgradeCalibrationDragonFixHeight instead
6968

7069
var SupportedProofTypes = buildconstants.SupportedProofTypes // Deprecated: Use buildconstants.SupportedProofTypes instead
7170
var ConsensusMinerMinPower = buildconstants.ConsensusMinerMinPower // Deprecated: Use buildconstants.ConsensusMinerMinPower instead

build/params_shared_vals.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,5 @@ var PackingEfficiencyNum int64 = buildconstants.PackingEfficiencyNum // Depr
6565
var PackingEfficiencyDenom int64 = buildconstants.PackingEfficiencyDenom // Deprecated: Use buildconstants.PackingEfficiencyDenom instead
6666

6767
const TestNetworkVersion = buildconstants.TestNetworkVersion // Deprecated: Use buildconstants.TestNetworkVersion instead
68+
69+
var MinerFDLimit = buildconstants.MinerFDLimit // Deprecated: Use buildconstants.MinerFDLimit instead

0 commit comments

Comments
 (0)