manager.go 441 B

1234567891011121314151617181920
  1. package core
  2. import (
  3. "github.com/ethereum/go-ethereum/crypto"
  4. "github.com/ethereum/go-ethereum/ethutil"
  5. "github.com/ethereum/go-ethereum/event"
  6. "github.com/ethereum/go-ethereum/p2p"
  7. )
  8. type Backend interface {
  9. BlockProcessor() *BlockProcessor
  10. ChainManager() *ChainManager
  11. TxPool() *TxPool
  12. PeerCount() int
  13. IsListening() bool
  14. Peers() []*p2p.Peer
  15. KeyManager() *crypto.KeyManager
  16. Db() ethutil.Database
  17. EventMux() *event.TypeMux
  18. }