manager.go 396 B

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