Skip to content

Commit

Permalink
Merge pull request #5117 from filecoin-project/fix/2knet
Browse files Browse the repository at this point in the history
fix: load builtin actors earlier
  • Loading branch information
hunjixin authored Jul 21, 2022
2 parents 250785f + 73e5cfa commit 182971a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 182971a

Please sign in to comment.