Skip to content

Commit 819ecd4

Browse files
committed
miner, xeth: fire log event during mining. Fix return raw tx
1 parent a2333bc commit 819ecd4

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

core/filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ done:
9999
switch {
100100
case block.NumberU64() == 0:
101101
break done
102-
case block.NumberU64() == earliestBlockNo:
102+
case block.NumberU64() < earliestBlockNo:
103103
break done
104104
case self.max <= len(logs):
105105
break done

miner/worker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ func (self *worker) wait() {
298298
self.mux.Post(core.ChainEvent{block, block.Hash(), logs})
299299
if stat == core.CanonStatTy {
300300
self.mux.Post(core.ChainHeadEvent{block})
301+
self.mux.Post(logs)
301302
}
302303
}(block, self.current.state.Logs())
303304

xeth/xeth.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,6 @@ func (self *XEth) PushTx(encodedTx string) (string, error) {
781781

782782
addr := crypto.CreateAddress(from, tx.Nonce())
783783
glog.V(logger.Info).Infof("Tx(%x) created: %x\n", tx.Hash(), addr)
784-
return addr.Hex(), nil
785784
} else {
786785
glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
787786
}

0 commit comments

Comments
 (0)