diff --git a/build/params_2k.go b/build/params_2k.go index 9a59ab4db..c00e46f25 100644 --- a/build/params_2k.go +++ b/build/params_2k.go @@ -16,7 +16,8 @@ import ( const BootstrappersFile = "" const GenesisFile = "" -const NetworkBundle = "devnet" + +var NetworkBundle = "devnet" const GenesisNetworkVersion = network.Version15 diff --git a/build/params_butterfly.go b/build/params_butterfly.go index 3cc508004..1873a9f1e 100644 --- a/build/params_butterfly.go +++ b/build/params_butterfly.go @@ -18,7 +18,8 @@ var DrandSchedule = map[abi.ChainEpoch]DrandEnum{ const GenesisNetworkVersion = network.Version14 -const NetworkBundle = "butterflynet" +var NetworkBundle = "butterflynet" + const BootstrappersFile = "butterflynet.pi" const GenesisFile = "butterflynet.car" diff --git a/build/params_calibnet.go b/build/params_calibnet.go index 7d21a9626..3214cdbc6 100644 --- a/build/params_calibnet.go +++ b/build/params_calibnet.go @@ -18,7 +18,8 @@ var DrandSchedule = map[abi.ChainEpoch]DrandEnum{ const GenesisNetworkVersion = network.Version0 -const NetworkBundle = "calibrationnet" +var NetworkBundle = "calibrationnet" + const BootstrappersFile = "calibnet.pi" const GenesisFile = "calibnet.car" diff --git a/build/params_interop.go b/build/params_interop.go index a120683e2..ae2101bfd 100644 --- a/build/params_interop.go +++ b/build/params_interop.go @@ -15,7 +15,8 @@ import ( "github.com/ipfs/go-cid" ) -const NetworkBundle = "caterpillarnet" +var NetworkBundle = "caterpillarnet" + const BootstrappersFile = "interopnet.pi" const GenesisFile = "interopnet.car" diff --git a/build/params_mainnet.go b/build/params_mainnet.go index 8fcdd6bc9..0bae512d7 100644 --- a/build/params_mainnet.go +++ b/build/params_mainnet.go @@ -19,7 +19,8 @@ var DrandSchedule = map[abi.ChainEpoch]DrandEnum{ UpgradeSmokeHeight: DrandMainnet, } -const NetworkBundle = "mainnet" +var NetworkBundle = "mainnet" + const GenesisNetworkVersion = network.Version0 const BootstrappersFile = "mainnet.pi" diff --git a/node/modules/builtin_actors.go b/node/modules/builtin_actors.go index 2e451fafe..d5b7295c7 100644 --- a/node/modules/builtin_actors.go +++ b/node/modules/builtin_actors.go @@ -136,6 +136,9 @@ func LoadBuiltinActorsTesting(lc fx.Lifecycle, mctx helpers.MetricsCtx, bs dtype testingBundleMx.Lock() defer testingBundleMx.Unlock() + // don't clobber the bundle during migration + build.NetworkBundle = netw + const basePath = "/tmp/lotus-testing" for av, bd := range build.BuiltinActorReleases { switch {