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/ui/library.go | |
parent | 5da03f2e3683361b6e725d96a1fbcc0d4d42613c (diff) | |
download | go-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.tar go-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.tar.gz go-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.tar.bz2 go-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.tar.lz go-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.tar.xz go-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.tar.zst go-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.zip |
Nonce handling
Diffstat (limited to 'ethereal/ui/library.go')
-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) |