rpc: add status and net info

This commit is contained in:
Ethan Buchman
2015-03-16 22:30:32 -07:00
committed by Jae Kwon
parent f55609a792
commit 7aa1d67c97
4 changed files with 55 additions and 4 deletions

View File

@ -4,11 +4,13 @@ import (
blk "github.com/tendermint/tendermint/block"
"github.com/tendermint/tendermint/consensus"
mempl "github.com/tendermint/tendermint/mempool"
"github.com/tendermint/tendermint/p2p"
)
var blockStore *blk.BlockStore
var consensusState *consensus.ConsensusState
var mempoolReactor *mempl.MempoolReactor
var p2pSwitch *p2p.Switch
func SetRPCBlockStore(bs *blk.BlockStore) {
blockStore = bs
@ -21,3 +23,7 @@ func SetRPCConsensusState(cs *consensus.ConsensusState) {
func SetRPCMempoolReactor(mr *mempl.MempoolReactor) {
mempoolReactor = mr
}
func SetSwitch(sw *p2p.Switch) {
p2pSwitch = sw
}