lotus/cli/init.go

20 lines
459 B
Go
Raw Normal View History

2022-05-11 19:45:06 +00:00
package cli
import (
"context"
"github.com/filecoin-project/lotus/blockstore"
"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/node/bundle"
2022-05-11 19:45:06 +00:00
)
func init() {
// preload manifest so that we have the correct code CID inventory for cli since that doesn't
// go through CI
bs := blockstore.NewMemory()
if err := bundle.FetchAndLoadBundles(context.Background(), bs, build.BuiltinActorReleases); err != nil {
2022-05-11 19:45:06 +00:00
panic(err)
}
}