2014-12-31 22:42:37 -08:00
|
|
|
package rpc
|
|
|
|
|
|
|
|
import (
|
2015-01-15 22:43:15 -08:00
|
|
|
blk "github.com/tendermint/tendermint/block"
|
2015-01-11 14:27:46 -08:00
|
|
|
"github.com/tendermint/tendermint/consensus"
|
2015-01-14 20:34:53 -08:00
|
|
|
mempl "github.com/tendermint/tendermint/mempool"
|
2014-12-31 22:42:37 -08:00
|
|
|
)
|
|
|
|
|
2015-01-15 22:43:15 -08:00
|
|
|
var blockStore *blk.BlockStore
|
2015-01-11 14:27:46 -08:00
|
|
|
var consensusState *consensus.ConsensusState
|
2015-01-14 20:34:53 -08:00
|
|
|
var mempoolReactor *mempl.MempoolReactor
|
2014-12-31 22:42:37 -08:00
|
|
|
|
2015-01-15 22:43:15 -08:00
|
|
|
func SetRPCBlockStore(bs *blk.BlockStore) {
|
2015-01-06 15:51:41 -08:00
|
|
|
blockStore = bs
|
2014-12-31 22:42:37 -08:00
|
|
|
}
|
|
|
|
|
2015-01-11 14:27:46 -08:00
|
|
|
func SetRPCConsensusState(cs *consensus.ConsensusState) {
|
|
|
|
consensusState = cs
|
2015-01-06 15:51:41 -08:00
|
|
|
}
|
|
|
|
|
2015-01-14 20:34:53 -08:00
|
|
|
func SetRPCMempoolReactor(mr *mempl.MempoolReactor) {
|
2015-01-06 15:51:41 -08:00
|
|
|
mempoolReactor = mr
|
2014-12-31 22:42:37 -08:00
|
|
|
}
|