aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-09 22:01:11 +0800
committerobscuren <geffobscura@gmail.com>2014-04-09 22:01:11 +0800
commit1e94cb5286067da80c3227861a836c611f01e32b (patch)
treebc6d0d0f18aeb78d4a6b0fd7af2a76394ecbf12e
parent5da03f2e3683361b6e725d96a1fbcc0d4d42613c (diff)
downloadgo-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.tar.gz
go-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.tar.zst
go-tangerine-1e94cb5286067da80c3227861a836c611f01e32b.zip
Nonce handling
-rw-r--r--ethereal/ui/library.go4
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)