You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
526 B

package rpc
import (
block_ "github.com/tendermint/tendermint/block"
"github.com/tendermint/tendermint/consensus"
mempool_ "github.com/tendermint/tendermint/mempool"
)
var blockStore *block_.BlockStore
var consensusState *consensus.ConsensusState
var mempoolReactor *mempool_.MempoolReactor
func SetRPCBlockStore(bs *block_.BlockStore) {
blockStore = bs
}
func SetRPCConsensusState(cs *consensus.ConsensusState) {
consensusState = cs
}
func SetRPCMempoolReactor(mr *mempool_.MempoolReactor) {
mempoolReactor = mr
}