From b8034f4d9ed7eea29a219a2d894ae22041a906a7 Mon Sep 17 00:00:00 2001
From: obscuren <geffobscura@gmail.com>
Date: Mon, 19 May 2014 12:14:04 +0200
Subject: [PATCH] Increment nonce in the public api

---
 ethchain/vm.go | 1 -
 ethpub/pub.go  | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/ethchain/vm.go b/ethchain/vm.go
index 584c66611..6579830ec 100644
--- a/ethchain/vm.go
+++ b/ethchain/vm.go
@@ -95,7 +95,6 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err erro
 	if ethutil.Config.Debug {
 		ethutil.Config.Log.Debugf("#   op\n")
 	}
-	fmt.Println(closure.Script)
 
 	for {
 		// The base for all big integer arithmetic
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)
-- 
GitLab