|
|
@ -303,13 +303,6 @@ func setUpConsensusAndNode(nodeConfig *nodeconfig.ConfigType) *node.Node { |
|
|
|
utils.GetLogInstance().Info("node account set", |
|
|
|
utils.GetLogInstance().Info("node account set", |
|
|
|
"address", common.MustAddressToBech32(currentNode.StakingAccount.Address)) |
|
|
|
"address", common.MustAddressToBech32(currentNode.StakingAccount.Address)) |
|
|
|
|
|
|
|
|
|
|
|
if gsif, err := consensus.NewGenesisStakeInfoFinder(); err == nil { |
|
|
|
|
|
|
|
currentConsensus.SetStakeInfoFinder(gsif) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
_, _ = fmt.Fprintf(os.Stderr, "Cannot initialize stake info: %v\n", err) |
|
|
|
|
|
|
|
os.Exit(1) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: refactor the creation of blockchain out of node.New()
|
|
|
|
// TODO: refactor the creation of blockchain out of node.New()
|
|
|
|
currentConsensus.ChainReader = currentNode.Blockchain() |
|
|
|
currentConsensus.ChainReader = currentNode.Blockchain() |
|
|
|
|
|
|
|
|
|
|
|