20 lines
460 B
Go
20 lines
460 B
Go
|
package cli
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/filecoin-project/lotus/blockstore"
|
||
|
"github.com/filecoin-project/lotus/build"
|
||
|
"github.com/filecoin-project/lotus/chain/actors"
|
||
|
)
|
||
|
|
||
|
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 := actors.FetchAndLoadBundles(context.Background(), bs, build.BuiltinActorReleases); err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
}
|