From 1fbb827e789b491848d53827616763419da447b7 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Wed, 31 Jan 2018 21:43:02 +0100 Subject: [PATCH] Update --- .gitignore | 4 +++- Makefile | 11 +++++++++++ genesis.json.dist | 14 ++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 Makefile create mode 100644 genesis.json.dist diff --git a/.gitignore b/.gitignore index 07f43b8..75c6a09 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -data/* \ No newline at end of file +data/* +node_modules/* +*.json \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..683ad36 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +start: + geth --rpc --rpcaddr "localhost" --rpcport "8545" --datadir="./data" --rpccorsdomain "*" --rpcapi "eth,net,web3" --nodiscover + +new: + geth account new --datadir ./data + +init: + geth -datadir ./data init ./genesis.json + +console: + geth --datadir ./data attach ipc:./data /geth.ipc \ No newline at end of file diff --git a/genesis.json.dist b/genesis.json.dist new file mode 100644 index 0000000..63c6868 --- /dev/null +++ b/genesis.json.dist @@ -0,0 +1,14 @@ +{ + "config": { + "chainId": 15, + "homesteadBlock": 0, + "eip155Block": 0, + "eip158Block": 0 + }, + "difficulty": "0x20", + "gasLimit": "0x2100000", + "alloc": { + "7a69b359e86893efa3d9732e4c65ced51567edd0": + { "balance": "0x1337000000000000000000" } + } +} \ No newline at end of file