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
476 B

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