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

  1. package rpc
  2. import (
  3. block_ "github.com/tendermint/tendermint/block"
  4. "github.com/tendermint/tendermint/consensus"
  5. mempool_ "github.com/tendermint/tendermint/mempool"
  6. )
  7. var blockStore *block_.BlockStore
  8. var consensusState *consensus.ConsensusState
  9. var mempoolReactor *mempool_.MempoolReactor
  10. func SetRPCBlockStore(bs *block_.BlockStore) {
  11. blockStore = bs
  12. }
  13. func SetRPCConsensusState(cs *consensus.ConsensusState) {
  14. consensusState = cs
  15. }
  16. func SetRPCMempoolReactor(mr *mempool_.MempoolReactor) {
  17. mempoolReactor = mr
  18. }