diff options
author | Felix Lange <fjl@twurst.com> | 2014-10-14 08:01:46 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-10-17 00:51:21 +0800 |
commit | 20cdb73862c6ae5af10dbaceba34c5073148235d (patch) | |
tree | 15d78773fabbf114a87338736d807b592c0ce1bf /ethereum.go | |
parent | 36cdab206849c7e363e0b9911553098c3e8ca644 (diff) | |
download | go-tangerine-20cdb73862c6ae5af10dbaceba34c5073148235d.tar.gz go-tangerine-20cdb73862c6ae5af10dbaceba34c5073148235d.tar.zst go-tangerine-20cdb73862c6ae5af10dbaceba34c5073148235d.zip |
ethchain: fix tests
Diffstat (limited to 'ethereum.go')
-rw-r--r-- | ethereum.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ethereum.go b/ethereum.go index 750ca8f03..e5f73d507 100644 --- a/ethereum.go +++ b/ethereum.go @@ -59,7 +59,7 @@ type Ethereum struct { // The block pool blockPool *BlockPool // Eventer - eventMux *event.TypeMux + eventMux event.TypeMux // Peers peers *list.List // Nonce @@ -126,7 +126,6 @@ func New(db ethutil.Database, clientIdentity ethwire.ClientIdentity, keyManager isUpToDate: true, filters: make(map[int]*ethchain.Filter), } - ethereum.eventMux = event.NewTypeMux() ethereum.blockPool = NewBlockPool(ethereum) ethereum.txPool = ethchain.NewTxPool(ethereum) @@ -162,7 +161,7 @@ func (s *Ethereum) BlockPool() *BlockPool { return s.blockPool } func (s *Ethereum) EventMux() *event.TypeMux { - return s.eventMux + return &s.eventMux } func (self *Ethereum) Db() ethutil.Database { return self.db |