diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-31 17:50:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-31 17:50:16 +0800 |
commit | 8e0a39f33f9d24ebeca9cc88edf24cc6294552d7 (patch) | |
tree | 347eecc28183ddb9ac81c1e7ae97c755d2e747ba /ethchain | |
parent | df5603de0a34e80a1af6ad03e37ce43728baad35 (diff) | |
download | dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.gz dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.bz2 dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.lz dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.xz dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.zst dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.zip |
Updated to use ethereum.js
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/filter.go | 2 | ||||
-rw-r--r-- | ethchain/state_manager.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/filter.go b/ethchain/filter.go index b0edea7a0..a88d36467 100644 --- a/ethchain/filter.go +++ b/ethchain/filter.go @@ -90,7 +90,7 @@ func (self *Filter) Find() []*ethstate.Message { for i := 0; !quit && block != nil; i++ { // Quit on latest switch { - case block.Number.Uint64() == earliestBlockNo: + case block.Number.Uint64() == earliestBlockNo, block.Number.Uint64() == 0: quit = true case self.max <= len(messages): break diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index 62970f621..d48d96a51 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -194,7 +194,7 @@ done: } // Notify all subscribers - self.eth.EventMux().Post(TxPostEvent{tx}) + go self.eth.EventMux().Post(TxPostEvent{tx}) receipts = append(receipts, receipt) handled = append(handled, tx) |