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 and simlecode committed Jul 21, 2022
1 parent e10cb44 commit 9e501ab
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 9e501ab

Please sign in to comment.