mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-19 01:20:39 +00:00
Nonce handling
This commit is contained in:
parent
5da03f2e36
commit
1e94cb5286
1 changed files with 3 additions and 1 deletions
|
|
@ -45,7 +45,9 @@ func (lib *EthLib) CreateTx(recipient, valueStr, gasStr, gasPriceStr, data strin
|
|||
} else {
|
||||
tx = ethchain.NewTransactionMessage(hash, value, gasPrice, gas, []string{})
|
||||
}
|
||||
tx.Nonce = lib.stateManager.GetAddrState(keyPair.Address()).Nonce
|
||||
acc := lib.stateManager.GetAddrState(keyPair.Address())
|
||||
tx.Nonce = acc.Nonce
|
||||
//acc.Nonce++
|
||||
tx.Sign(keyPair.PrivateKey)
|
||||
lib.txPool.QueueTransaction(tx)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue