mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-12 19:16:41 +00:00
Fix for creating a tx from an unknown account
This commit is contained in:
parent
2bbc204328
commit
0ce9003ba7
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, sc
|
||||||
tx = ethchain.NewTransactionMessage(hash, value, gas, gasPrice, data)
|
tx = ethchain.NewTransactionMessage(hash, value, gas, gasPrice, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
acc := lib.stateManager.TransState().GetStateObject(keyPair.Address())
|
acc := lib.stateManager.TransState().GetOrNewStateObject(keyPair.Address())
|
||||||
tx.Nonce = acc.Nonce
|
tx.Nonce = acc.Nonce
|
||||||
acc.Nonce += 1
|
acc.Nonce += 1
|
||||||
lib.stateManager.TransState().UpdateStateObject(acc)
|
lib.stateManager.TransState().UpdateStateObject(acc)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue