diff --git a/Makefile b/Makefile index 0fd1d7a92..abc01385a 100644 --- a/Makefile +++ b/Makefile @@ -63,20 +63,23 @@ CLEAN+=build/.update-modules deps: $(BUILD_DEPS) .PHONY: deps +build-devnets: build lotus-seed lotus-shed lotus-wallet lotus-gateway +.PHONY: build-devnets + debug: GOFLAGS+=-tags=debug -debug: lotus lotus-miner lotus-worker lotus-seed +debug: build-devnets 2k: GOFLAGS+=-tags=2k -2k: lotus lotus-miner lotus-worker lotus-seed +2k: build-devnets calibnet: GOFLAGS+=-tags=calibnet -calibnet: lotus lotus-miner lotus-worker lotus-seed +calibnet: build-devnets nerpanet: GOFLAGS+=-tags=nerpanet -nerpanet: lotus lotus-miner lotus-worker lotus-seed +nerpanet: build-devnets butterflynet: GOFLAGS+=-tags=butterflynet -butterflynet: lotus lotus-miner lotus-worker lotus-seed +butterflynet: build-devnets lotus: $(BUILD_DEPS) rm -f lotus diff --git a/build/bootstrap/nerpanet.pi b/build/bootstrap/nerpanet.pi index caee912a3..83ad1d184 100644 --- a/build/bootstrap/nerpanet.pi +++ b/build/bootstrap/nerpanet.pi @@ -1,4 +1,4 @@ -/dns4/bootstrap-0.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWNfuGjtzWTVz8eJGZ2C3aJg2xLqorhsagu4LTWw6CwpK9 -/dns4/bootstrap-1.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWDfsxYk7dC6NNsHqZqqyMJCzkjZuXhjsmqBk3TUCBZLga -/dns4/bootstrap-2.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWRZAGHmCCaa2gkYmnC4Q2TEwHGFSh6Fh1FFJ7RSXak5yN -/dns4/bootstrap-3.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWBFxEigSKLvxJVdw3JziC9ePHHnyAn5LifWSqg2kttcth \ No newline at end of file +/dns4/bootstrap-2.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWQcL6ReWmR6ASWx4iT7EiAmxKDQpvgq1MKNTQZp5NPnWW +/dns4/bootstrap-0.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWGyJCwCm7EfupM15CFPXM4c7zRVHwwwjcuy9umaGeztMX +/dns4/bootstrap-3.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWNK9RmfksKXSCQj7ZwAM7L6roqbN4kwJteihq7yPvSgPs +/dns4/bootstrap-1.nerpa.interplanetary.dev/tcp/1347/p2p/12D3KooWCWSaH6iUyXYspYxELjDfzToBsyVGVz3QvC7ysXv7wESo diff --git a/build/genesis/nerpanet.car b/build/genesis/nerpanet.car index 8c226a4a2..c32e0171b 100644 Binary files a/build/genesis/nerpanet.car and b/build/genesis/nerpanet.car differ diff --git a/build/params_nerpanet.go b/build/params_nerpanet.go index e30ba4557..20ecab4e2 100644 --- a/build/params_nerpanet.go +++ b/build/params_nerpanet.go @@ -24,21 +24,21 @@ const UpgradeSmokeHeight = -1 const UpgradeIgnitionHeight = -2 const UpgradeRefuelHeight = -3 -const UpgradeTapeHeight = -4 - const UpgradeLiftoffHeight = -5 -const UpgradeActorsV2Height = 120 // critical: the network can bootstrap from v1 only -const UpgradeKumquatHeight = -6 +const UpgradeActorsV2Height = 30 // critical: the network can bootstrap from v1 only +const UpgradeTapeHeight = 60 -const UpgradeCalicoHeight = 306000 -const UpgradePersianHeight = UpgradeCalicoHeight + (builtin2.EpochsInHour * 12) +const UpgradeKumquatHeight = 90 -const UpgradeOrangeHeight = 307500 +const UpgradeCalicoHeight = 100 +const UpgradePersianHeight = UpgradeCalicoHeight + (builtin2.EpochsInHour * 1) -const UpgradeClausHeight = 307600 +const UpgradeClausHeight = 250 -const UpgradeActorsV3Height = 308000 +const UpgradeOrangeHeight = 300 + +const UpgradeActorsV3Height = 600 func init() { // Minimum block production power is set to 4 TiB diff --git a/chain/stmgr/forks.go b/chain/stmgr/forks.go index 899397940..cb6cb2261 100644 --- a/chain/stmgr/forks.go +++ b/chain/stmgr/forks.go @@ -852,6 +852,10 @@ func UpgradeLiftoff(ctx context.Context, sm *StateManager, _ MigrationCache, cb } func UpgradeCalico(ctx context.Context, sm *StateManager, _ MigrationCache, cb ExecCallback, root cid.Cid, epoch abi.ChainEpoch, ts *types.TipSet) (cid.Cid, error) { + if build.BuildType != build.BuildMainnet { + return root, nil + } + store := sm.cs.ActorStore(ctx) var stateRoot types.StateRoot if err := store.Get(ctx, root, &stateRoot); err != nil { diff --git a/cmd/lotus-seed/genesis.go b/cmd/lotus-seed/genesis.go index 6f2c22147..d5f1d5ad6 100644 --- a/cmd/lotus-seed/genesis.go +++ b/cmd/lotus-seed/genesis.go @@ -334,11 +334,6 @@ var genesisSetVRKCmd = &cli.Command{ return err } - csvf, err := homedir.Expand(cctx.Args().Get(1)) - if err != nil { - return err - } - var template genesis.Template b, err := ioutil.ReadFile(genf) if err != nil { @@ -363,6 +358,10 @@ var genesisSetVRKCmd = &cli.Command{ Meta: am.ActorMeta(), } } else if cctx.IsSet("multisig") { + csvf, err := homedir.Expand(cctx.String("multisig")) + if err != nil { + return err + } entries, err := parseMultisigCsv(csvf) if err != nil { @@ -431,11 +430,6 @@ var genesisSetRemainderCmd = &cli.Command{ return err } - csvf, err := homedir.Expand(cctx.Args().Get(1)) - if err != nil { - return err - } - var template genesis.Template b, err := ioutil.ReadFile(genf) if err != nil { @@ -460,6 +454,10 @@ var genesisSetRemainderCmd = &cli.Command{ Meta: am.ActorMeta(), } } else if cctx.IsSet("multisig") { + csvf, err := homedir.Expand(cctx.String("multisig")) + if err != nil { + return err + } entries, err := parseMultisigCsv(csvf) if err != nil {