File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ import (
88 "time"
99
1010 "github.com/ethereum/go-ethereum/core/types"
11- "github.com/ethereum/go-ethereum/crypto"
1211 "github.com/ethereum/go-ethereum/ethutil"
1312 "github.com/ethereum/go-ethereum/event"
1413 "github.com/ethereum/go-ethereum/logger"
15- "github.com/ethereum/go-ethereum/p2p"
1614 "github.com/ethereum/go-ethereum/pow"
1715 "github.com/ethereum/go-ethereum/pow/ezp"
1816 "github.com/ethereum/go-ethereum/state"
@@ -25,20 +23,6 @@ type PendingBlockEvent struct {
2523
2624var statelogger = logger .NewLogger ("BLOCK" )
2725
28- type EthManager interface {
29- BlockProcessor () * BlockProcessor
30- ChainManager () * ChainManager
31- TxPool () * TxPool
32- PeerCount () int
33- IsMining () bool
34- IsListening () bool
35- Peers () []* p2p.Peer
36- KeyManager () * crypto.KeyManager
37- ClientIdentity () p2p.ClientIdentity
38- Db () ethutil.Database
39- EventMux () * event.TypeMux
40- }
41-
4226type BlockProcessor struct {
4327 db ethutil.Database
4428 // Mutex for locking the block processor. Blocks can only be handled one at a time
Original file line number Diff line number Diff line change 1+ package core
2+
3+ import (
4+ "github.com/ethereum/go-ethereum/crypto"
5+ "github.com/ethereum/go-ethereum/ethutil"
6+ "github.com/ethereum/go-ethereum/event"
7+ "github.com/ethereum/go-ethereum/p2p"
8+ )
9+
10+ type EthManager interface {
11+ BlockProcessor () * BlockProcessor
12+ ChainManager () * ChainManager
13+ TxPool () * TxPool
14+ PeerCount () int
15+ IsMining () bool
16+ IsListening () bool
17+ Peers () []* p2p.Peer
18+ KeyManager () * crypto.KeyManager
19+ ClientIdentity () p2p.ClientIdentity
20+ Db () ethutil.Database
21+ EventMux () * event.TypeMux
22+ }
You can’t perform that action at this time.
0 commit comments