// rpc calls from this node
func (n *Node) ConfigureRPC() {
rpccore.SetEventSwitch(n.evsw)
- //rpccore.SetBlockStore(n.blockStore)
+ rpccore.SetBlockStore(n.blockStore)
//rpccore.SetConsensusState(n.consensusState)
//rpccore.SetMempool(n.mempoolReactor.Mempool)
rpccore.SetSwitch(n.sw)
// "github.com/tendermint/tendermint/state/txindex"
"github.com/blockchain/types"
"github.com/tendermint/tmlibs/log"
+ bc "github.com/blockchain/blockchain"
)
//----------------------------------------------
// proxyAppQuery proxy.AppConnQuery
// interfaces defined in types and above
- //blockStore types.BlockStore
+ blockStore *bc.MemStore
//mempool types.Mempool
//consensusState Consensus
p2pSwitch P2P
eventSwitch = evsw
}
-/*
-func SetBlockStore(bs types.BlockStore) {
+func SetBlockStore(bs *bc.MemStore) {
blockStore = bs
}
+/*
func SetMempool(mem types.Mempool) {
mempool = mem
}