aboutsummaryrefslogtreecommitdiff
path: root/examples/payments
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-08-14 16:04:43 -0400
committerDeterminant <[email protected]>2019-08-14 16:04:43 -0400
commit63fc17f85121f84d597742a49b99ab3d022aa6bd (patch)
treef5c0f4136445ba1b1d2c0bb6ac728d9ab382c4c4 /examples/payments
parent499f682b48f914ed4af0e32ba446dd0cf56e96b4 (diff)
...
Diffstat (limited to 'examples/payments')
-rw-r--r--examples/payments/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/payments/main.go b/examples/payments/main.go
index 9609359..46e4e58 100644
--- a/examples/payments/main.go
+++ b/examples/payments/main.go
@@ -58,7 +58,7 @@ func main() {
config.Miner.ManualMining = true
chainID := chainConfig.ChainID
- nonce := uint64(1)
+ nonce := uint64(0)
value := big.NewInt(1000000000000)
gasLimit := 21000
gasPrice := big.NewInt(1000)
@@ -71,7 +71,7 @@ func main() {
tx := types.NewTransaction(nonce, bob.Address, value, uint64(gasLimit), gasPrice, nil)
signedTx, err := types.SignTx(tx, types.NewEIP155Signer(chainID), genKey.PrivateKey); checkError(err)
chain.AddLocalTxs([]*types.Transaction{signedTx})
- time.Sleep(1000 * time.Millisecond)
+ time.Sleep(2000 * time.Millisecond)
nonce++
chain.GenBlock()
}