From 63fc17f85121f84d597742a49b99ab3d022aa6bd Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 14 Aug 2019 16:04:43 -0400 Subject: ... --- examples/payments/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/payments') 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() } -- cgit v1.2.3-70-g09d2