don't clobber test bundles during migration
This commit is contained in:
parent
8323ff77b6
commit
bb0e3a6cb0
@ -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
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user