diff options
author | Determinant <[email protected]> | 2019-08-14 16:04:43 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-08-14 16:04:43 -0400 |
commit | 63fc17f85121f84d597742a49b99ab3d022aa6bd (patch) | |
tree | f5c0f4136445ba1b1d2c0bb6ac728d9ab382c4c4 /examples | |
parent | 499f682b48f914ed4af0e32ba446dd0cf56e96b4 (diff) |
...
Diffstat (limited to 'examples')
-rw-r--r-- | examples/payments/main.go | 4 |
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() } |