From 73e5cfa1aebafa727dc9c2a7e1a9ee8f3d576021 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Thu, 21 Jul 2022 10:52:43 +0800 Subject: [PATCH] fix: load builtin actors earlier --- cmd/daemon.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/daemon.go b/cmd/daemon.go index b9b177ca2e..7c2894b971 100644 --- a/cmd/daemon.go +++ b/cmd/daemon.go @@ -141,6 +141,11 @@ func initRun(req *cmds.Request) error { } node.SetNetParams(cfg.NetworkParams) + if err := builtinactors.SetNetworkBundle(cfg.NetworkParams.NetworkType); err != nil { + return err + } + utils.ReloadMethodsMap() + genesisFunc = genesis.MakeGenesis(req.Context, rep, mkGen, preTp.(string), cfg.NetworkParams.ForkUpgradeParam) } else { genesisFileSource, _ := req.Options[GenesisFile].(string)