diff options
Diffstat (limited to 'chain')
-rw-r--r-- | chain/state_manager.go | 6 | ||||
-rw-r--r-- | chain/transaction_pool.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/chain/state_manager.go b/chain/state_manager.go index b6bfbc22f..f624f0097 100644 --- a/chain/state_manager.go +++ b/chain/state_manager.go @@ -11,10 +11,10 @@ import ( "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethutil" - "github.com/ethereum/go-ethereum/ethwire" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/wire" ) var statelogger = logger.NewLogger("BLOCK") @@ -35,13 +35,13 @@ type EthManager interface { StateManager() *StateManager ChainManager() *ChainManager TxPool() *TxPool - Broadcast(msgType ethwire.MsgType, data []interface{}) + Broadcast(msgType wire.MsgType, data []interface{}) PeerCount() int IsMining() bool IsListening() bool Peers() *list.List KeyManager() *crypto.KeyManager - ClientIdentity() ethwire.ClientIdentity + ClientIdentity() wire.ClientIdentity Db() ethutil.Database EventMux() *event.TypeMux } diff --git a/chain/transaction_pool.go b/chain/transaction_pool.go index 3e3787eed..a7c85e802 100644 --- a/chain/transaction_pool.go +++ b/chain/transaction_pool.go @@ -7,9 +7,9 @@ import ( "math/big" "sync" - "github.com/ethereum/go-ethereum/ethwire" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/state" + "github.com/ethereum/go-ethereum/wire" ) var txplogger = logger.NewLogger("TXP") @@ -93,7 +93,7 @@ func (pool *TxPool) addTransaction(tx *Transaction) { pool.pool.PushBack(tx) // Broadcast the transaction to the rest of the peers - pool.Ethereum.Broadcast(ethwire.MsgTxTy, []interface{}{tx.RlpData()}) + pool.Ethereum.Broadcast(wire.MsgTxTy, []interface{}{tx.RlpData()}) } func (pool *TxPool) ValidateTransaction(tx *Transaction) error { |