mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-27 11:41:39 +00:00
rpc: add status and net info
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user