|
@ -212,6 +212,10 @@ func (n *Node) ConsensusState() *consensus.ConsensusState { |
|
|
return n.consensusState |
|
|
return n.consensusState |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (n *Node) ConsensusReactor() *consensus.ConsensusReactor { |
|
|
|
|
|
return n.consensusReactor |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
func (n *Node) MempoolReactor() *mempl.MempoolReactor { |
|
|
func (n *Node) MempoolReactor() *mempl.MempoolReactor { |
|
|
return n.mempoolReactor |
|
|
return n.mempoolReactor |
|
|
} |
|
|
} |
|
@ -220,6 +224,11 @@ func (n *Node) EventSwitch() *events.EventSwitch { |
|
|
return n.evsw |
|
|
return n.evsw |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// XXX: for convenience
|
|
|
|
|
|
func (n *Node) PrivValidator() *types.PrivValidator { |
|
|
|
|
|
return n.privValidator |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
func makeNodeInfo(config cfg.Config, sw *p2p.Switch, privKey crypto.PrivKeyEd25519) *p2p.NodeInfo { |
|
|
func makeNodeInfo(config cfg.Config, sw *p2p.Switch, privKey crypto.PrivKeyEd25519) *p2p.NodeInfo { |
|
|
|
|
|
|
|
|
nodeInfo := &p2p.NodeInfo{ |
|
|
nodeInfo := &p2p.NodeInfo{ |
|
@ -326,7 +335,6 @@ func RunNode(config cfg.Config) { |
|
|
PanicSanity(Fmt("Genesis doc %v must include non-empty chain_id", genDocFile)) |
|
|
PanicSanity(Fmt("Genesis doc %v must include non-empty chain_id", genDocFile)) |
|
|
} |
|
|
} |
|
|
config.Set("chain_id", genDoc.ChainID) |
|
|
config.Set("chain_id", genDoc.ChainID) |
|
|
config.Set("genesis_doc", genDoc) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|