forked from cerc-io/plugeth
miner, xeth: fire log event during mining. Fix return raw tx
This commit is contained in:
parent
a2333bcbb4
commit
819ecd4508
@ -99,7 +99,7 @@ done:
|
||||
switch {
|
||||
case block.NumberU64() == 0:
|
||||
break done
|
||||
case block.NumberU64() == earliestBlockNo:
|
||||
case block.NumberU64() < earliestBlockNo:
|
||||
break done
|
||||
case self.max <= len(logs):
|
||||
break done
|
||||
|
@ -298,6 +298,7 @@ func (self *worker) wait() {
|
||||
self.mux.Post(core.ChainEvent{block, block.Hash(), logs})
|
||||
if stat == core.CanonStatTy {
|
||||
self.mux.Post(core.ChainHeadEvent{block})
|
||||
self.mux.Post(logs)
|
||||
}
|
||||
}(block, self.current.state.Logs())
|
||||
|
||||
|
@ -781,7 +781,6 @@ func (self *XEth) PushTx(encodedTx string) (string, error) {
|
||||
|
||||
addr := crypto.CreateAddress(from, tx.Nonce())
|
||||
glog.V(logger.Info).Infof("Tx(%x) created: %x\n", tx.Hash(), addr)
|
||||
return addr.Hex(), nil
|
||||
} else {
|
||||
glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user