diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-09 22:01:11 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-09 22:01:11 +0800 |
commit | 1e94cb5286067da80c3227861a836c611f01e32b (patch) | |
tree | bc6d0d0f18aeb78d4a6b0fd7af2a76394ecbf12e /ethereal | |
parent | 5da03f2e3683361b6e725d96a1fbcc0d4d42613c (diff) | |
download | dexon-1e94cb5286067da80c3227861a836c611f01e32b.tar.gz dexon-1e94cb5286067da80c3227861a836c611f01e32b.tar.zst dexon-1e94cb5286067da80c3227861a836c611f01e32b.zip |
Nonce handling
Diffstat (limited to 'ethereal')
-rw-r--r-- | ethereal/ui/library.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ethereal/ui/library.go b/ethereal/ui/library.go index 7a8939bf1..9a7469426 100644 --- a/ethereal/ui/library.go +++ b/ethereal/ui/library.go @@ -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) |