diff --git a/FVMLiftoff.txt b/chain/consensus/filcns/FVMLiftoff.txt similarity index 100% rename from FVMLiftoff.txt rename to chain/consensus/filcns/FVMLiftoff.txt diff --git a/chain/consensus/filcns/upgrades.go b/chain/consensus/filcns/upgrades.go index 300ab1eb9..33dbe638f 100644 --- a/chain/consensus/filcns/upgrades.go +++ b/chain/consensus/filcns/upgrades.go @@ -2,9 +2,12 @@ package filcns import ( "context" + "fmt" "runtime" "time" + _ "embed" + "github.com/docker/go-units" "github.com/ipfs/go-cid" cbor "github.com/ipfs/go-ipld-cbor" @@ -47,6 +50,9 @@ import ( "github.com/filecoin-project/lotus/node/bundle" ) +//go:embed FVMLiftoff.txt +var fvmLiftoffBanner string + func DefaultUpgradeSchedule() stmgr.UpgradeSchedule { var us stmgr.UpgradeSchedule @@ -1338,6 +1344,8 @@ func UpgradeActorsV8(ctx context.Context, sm *stmgr.StateManager, cache stmgr.Mi return cid.Undef, xerrors.Errorf("migrating actors v7 state: %w", err) } + fmt.Print(fvmLiftoffBanner) + return newRoot, nil } diff --git a/chain/stmgr/forks.go b/chain/stmgr/forks.go index 52913b303..048ea7372 100644 --- a/chain/stmgr/forks.go +++ b/chain/stmgr/forks.go @@ -1,12 +1,9 @@ package stmgr import ( - "bufio" "bytes" "context" "encoding/binary" - "fmt" - "os" "sort" "sync" "time" @@ -195,13 +192,6 @@ func (sm *StateManager) HandleStateForks(ctx context.Context, root cid.Cid, heig "to", retCid, "duration", time.Since(startTime), ) - - f, _ := os.Open("/Users/jennijuju/filecoin/lotus/FVMLiftoff.txt") - scanner := bufio.NewScanner(f) - for scanner.Scan() { - line := scanner.Text() - fmt.Println(line) - } } return retCid, nil