aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-19 18:14:04 +0800
committerobscuren <geffobscura@gmail.com>2014-05-19 18:14:04 +0800
commitb8034f4d9ed7eea29a219a2d894ae22041a906a7 (patch)
tree1480240540a8e1c70b11d2108429734aaad27368 /ethpub
parentbd48690f63d07d9a0568f0d8092006ebaa12af5f (diff)
downloaddexon-b8034f4d9ed7eea29a219a2d894ae22041a906a7.tar
dexon-b8034f4d9ed7eea29a219a2d894ae22041a906a7.tar.gz
dexon-b8034f4d9ed7eea29a219a2d894ae22041a906a7.tar.bz2
dexon-b8034f4d9ed7eea29a219a2d894ae22041a906a7.tar.lz
dexon-b8034f4d9ed7eea29a219a2d894ae22041a906a7.tar.xz
dexon-b8034f4d9ed7eea29a219a2d894ae22041a906a7.tar.zst
dexon-b8034f4d9ed7eea29a219a2d894ae22041a906a7.zip
Increment nonce in the public api
Diffstat (limited to 'ethpub')
-rw-r--r--ethpub/pub.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go
index 2513f83ed..8c9a0666c 100644
--- a/ethpub/pub.go
+++ b/ethpub/pub.go
@@ -162,6 +162,7 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, in
acc := lib.stateManager.TransState().GetStateObject(keyPair.Address())
//acc := lib.stateManager.GetAddrState(keyPair.Address())
tx.Nonce = acc.Nonce
+ acc.Nonce += 1
lib.stateManager.TransState().SetStateObject(acc)
tx.Sign(keyPair.PrivateKey)