refactor to pass the network bundle name through ldflags from build

This commit is contained in:
vyzo
2022-05-12 16:42:59 +03:00
parent 70bf990294
commit 7be42d9935
6 changed files with 97 additions and 82 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import (
"github.com/filecoin-project/lotus/blockstore"
"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/node/bundle"
)
func init() {
@@ -13,7 +13,7 @@ func init() {
// go through CI
bs := blockstore.NewMemory()
if err := actors.FetchAndLoadBundles(context.Background(), bs, build.BuiltinActorReleases); err != nil {
if err := bundle.FetchAndLoadBundles(context.Background(), bs, build.BuiltinActorReleases); err != nil {
panic(err)
}
}