rpc cleanup; tendermint init

This commit is contained in:
Jae Kwon
2015-05-12 19:03:05 -07:00
parent dd3d35f9f1
commit be90fd1e0d
7 changed files with 25 additions and 22 deletions

View File

@ -187,6 +187,7 @@ func (n *Node) StartRPC() {
core.SetConsensusReactor(n.consensusReactor)
core.SetMempoolReactor(n.mempoolReactor)
core.SetSwitch(n.sw)
core.SetPrivValidator(n.privValidator)
listenAddr := config.App().GetString("rpc_laddr")
mux := http.NewServeMux()
@ -215,7 +216,7 @@ func makeNodeInfo(sw *p2p.Switch) *types.NodeInfo {
nodeInfo := &types.NodeInfo{
Network: config.App().GetString("network"),
Moniker: config.App().GetString("moniker"),
Version: "0.2.0", // Everything is in Big Endian.
Version: config.App().GetString("version"),
}
if !sw.IsListening() {
return nodeInfo