Skip to content

Commit 58ba290

Browse files
committed
moved manager
1 parent 16a04e6 commit 58ba290

2 files changed

Lines changed: 22 additions & 16 deletions

File tree

‎core/block_processor.go‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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

2624
var 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-
4226
type BlockProcessor struct {
4327
db ethutil.Database
4428
// Mutex for locking the block processor. Blocks can only be handled one at a time

‎core/manager.go‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

0 commit comments

Comments
 (0)