From 57cf1b0855d373efff569c29e3cd39bcce273c12 Mon Sep 17 00:00:00 2001 From: vrde Date: Mon, 11 Feb 2019 18:15:16 +0100 Subject: [PATCH] Update gas parameters --- README.md | 1 + cli.js | 0 genesis.geth.json | 2 +- main.js | 6 +++++- package.json | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) mode change 100644 => 100755 cli.js diff --git a/README.md b/README.md index d3db251..8c7e509 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,4 @@ Ganache sometimes is not enough. [parity:devchain]: https://wiki.parity.io/Private-development-chain [remix]: http://remix.ethereum.org/ [geth-testnet]: https://hackernoon.com/setup-your-own-private-proof-of-authority-ethereum-network-with-geth-9a0a3750cda8 +[hudson:gas]: https://hudsonjameson.com/2017-06-27-accounts-transactions-gas-ethereum/ diff --git a/cli.js b/cli.js old mode 100644 new mode 100755 diff --git a/genesis.geth.json b/genesis.geth.json index a293c14..4aa0deb 100644 --- a/genesis.geth.json +++ b/genesis.geth.json @@ -17,7 +17,7 @@ "nonce": "0x0", "timestamp": "0x5c5c5fff", "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "gasLimit": "0x47b760", + "gasLimit": "0x7A1200", "difficulty": "0x1", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000", diff --git a/main.js b/main.js index e18f214..40be109 100644 --- a/main.js +++ b/main.js @@ -139,7 +139,9 @@ function run(client, workdir) { "--rpcapi", "personal,db,eth,net,web3,txpool,miner,debug", "--gasprice", - "1", + "4000000000", + "--targetgaslimit", + "4712388", "--rpccorsdomain", "*", "--keystore", @@ -157,6 +159,8 @@ function run(client, workdir) { paths.genesis, "--keys-path", paths.keys, + "--gasprice", + "4000000000", "--jsonrpc-cors", "all", "--jsonrpc-apis", diff --git a/package.json b/package.json index 5f02912..ce242df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ethnode", - "version": "0.0.3", + "version": "0.0.4", "description": "Run an Ethereum node for development.", "homepage": "https://github.com/vrde/ethnode", "main": "main.js",