Merge pull request #1034 from obscuren/tx_pool_fix

Nonce fix for failing transactions
pull/1039/head
Jeffrey Wilcke 10 years ago
commit 6c2ad7b72e
  1. 2
      xeth/xeth.go

@ -924,9 +924,11 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS
tx.SetNonce(nonce)
if err := self.sign(tx, from, false); err != nil {
state.RemoveNonce(from, tx.Nonce())
return "", err
}
if err := self.backend.TxPool().Add(tx); err != nil {
state.RemoveNonce(from, tx.Nonce())
return "", err
}

Loading…
Cancel
Save