Skip to content

Commit ce862ee

Browse files
committed
Removed some comments
1 parent 4300f2a commit ce862ee

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎miner/worker.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ gasLimit:
211211
from, _ := tx.From()
212212
self.chain.TxState().RemoveNonce(from, tx.Nonce())
213213
remove = append(remove, tx)
214-
minerlogger.Infof("TX (%x) failed. Transaction will be removed\n", tx.Hash().Bytes()[:4])
214+
minerlogger.Infof("TX (%x) failed, will be removed: %v\n", tx.Hash().Bytes()[:4], err)
215+
minerlogger.Infoln(tx)
215216
case state.IsGasLimitErr(err):
216217
minerlogger.Infof("Gas limit reached for block. %d TXs included in this block\n", i)
217218
// Break on gas limit

‎xeth/xeth.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt
611611
}
612612

613613
state := self.chainManager.TxState()
614-
nonce := state.NewNonce(from) //state.GetNonce(from)
614+
nonce := state.NewNonce(from)
615615
tx.SetNonce(nonce)
616616

617617
if err := self.sign(tx, from, false); err != nil {
@@ -620,7 +620,6 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt
620620
if err := self.eth.TxPool().Add(tx); err != nil {
621621
return "", err
622622
}
623-
//state.IncrementNonce(from)
624623

625624
if contractCreation {
626625
addr := core.AddressFromMessage(tx)

0 commit comments

Comments
 (0)