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