don't clobber test bundles during migration

This commit is contained in:
vyzo 2022-05-25 19:16:11 +03:00
parent 8323ff77b6
commit bb0e3a6cb0
6 changed files with 13 additions and 5 deletions

View File

@ -16,7 +16,8 @@ import (
const BootstrappersFile = "" const BootstrappersFile = ""
const GenesisFile = "" const GenesisFile = ""
const NetworkBundle = "devnet"
var NetworkBundle = "devnet"
const GenesisNetworkVersion = network.Version15 const GenesisNetworkVersion = network.Version15

View File

@ -18,7 +18,8 @@ var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
const GenesisNetworkVersion = network.Version14 const GenesisNetworkVersion = network.Version14
const NetworkBundle = "butterflynet" var NetworkBundle = "butterflynet"
const BootstrappersFile = "butterflynet.pi" const BootstrappersFile = "butterflynet.pi"
const GenesisFile = "butterflynet.car" const GenesisFile = "butterflynet.car"

View File

@ -18,7 +18,8 @@ var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
const GenesisNetworkVersion = network.Version0 const GenesisNetworkVersion = network.Version0
const NetworkBundle = "calibrationnet" var NetworkBundle = "calibrationnet"
const BootstrappersFile = "calibnet.pi" const BootstrappersFile = "calibnet.pi"
const GenesisFile = "calibnet.car" const GenesisFile = "calibnet.car"

View File

@ -15,7 +15,8 @@ import (
"github.com/ipfs/go-cid" "github.com/ipfs/go-cid"
) )
const NetworkBundle = "caterpillarnet" var NetworkBundle = "caterpillarnet"
const BootstrappersFile = "interopnet.pi" const BootstrappersFile = "interopnet.pi"
const GenesisFile = "interopnet.car" const GenesisFile = "interopnet.car"

View File

@ -19,7 +19,8 @@ var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
UpgradeSmokeHeight: DrandMainnet, UpgradeSmokeHeight: DrandMainnet,
} }
const NetworkBundle = "mainnet" var NetworkBundle = "mainnet"
const GenesisNetworkVersion = network.Version0 const GenesisNetworkVersion = network.Version0
const BootstrappersFile = "mainnet.pi" const BootstrappersFile = "mainnet.pi"

View File

@ -136,6 +136,9 @@ func LoadBuiltinActorsTesting(lc fx.Lifecycle, mctx helpers.MetricsCtx, bs dtype
testingBundleMx.Lock() testingBundleMx.Lock()
defer testingBundleMx.Unlock() defer testingBundleMx.Unlock()
// don't clobber the bundle during migration
build.NetworkBundle = netw
const basePath = "/tmp/lotus-testing" const basePath = "/tmp/lotus-testing"
for av, bd := range build.BuiltinActorReleases { for av, bd := range build.BuiltinActorReleases {
switch { switch {