53 lines
1.9 KiB
Bash
Executable File
53 lines
1.9 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# set -Eeuo pipefail
|
|
|
|
# https://notes.ethereum.org/@9AeMAlpyQYaAAyuj47BzRw/rkwW3ceVY
|
|
|
|
# To increase verbosity: debug.verbosity(4)
|
|
# MetaMask seed phrase for address with balance is:
|
|
# lecture manual soon title cloth uncle gesture cereal common fruit tooth crater
|
|
|
|
GENESISJSON=$(mktemp)
|
|
GETHDATADIR=$(mktemp -d)
|
|
|
|
echo \{\
|
|
\"config\": \{\
|
|
\"chainId\":1,\
|
|
\"homesteadBlock\":0,\
|
|
\"daoForkBlock\":0,\
|
|
\"daoForkSupport\":true,\
|
|
\"eip150Block\":0,\
|
|
\"eip155Block\":0,\
|
|
\"eip158Block\":0,\
|
|
\"byzantiumBlock\":0,\
|
|
\"constantinopleBlock\":0,\
|
|
\"petersburgBlock\":0,\
|
|
\"istanbulBlock\":0,\
|
|
\"muirGlacierBlock\":0,\
|
|
\"berlinBlock\":0,\
|
|
\"londonBlock\":0,\
|
|
\"clique\": \{\
|
|
\"period\": 5,\
|
|
\"epoch\": 30000\
|
|
\},\
|
|
\"terminalTotalDifficulty\":0\
|
|
\},\
|
|
\"nonce\":\"0x42\",\
|
|
\"timestamp\":\"0x0\",\
|
|
\"extraData\":\"0x0000000000000000000000000000000000000000000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\
|
|
\"gasLimit\":\"0x989680\",\
|
|
\"difficulty\":\"0x400000000\",\
|
|
\"mixHash\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\
|
|
\"coinbase\":\"0x0000000000000000000000000000000000000000\",\
|
|
\"alloc\":\{\
|
|
\"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b\":\{\"balance\":\"0x6d6172697573766477000000\"\} \
|
|
\},\
|
|
\"number\":\"0x0\",\
|
|
\"gasUsed\":\"0x0\",\
|
|
\"parentHash\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\
|
|
\"baseFeePerGas\":\"0x7\"\
|
|
\} > ${GENESISJSON}
|
|
|
|
~/execution_clients/go-ethereum/build/bin/geth --catalyst --http --ws -http.api "engine" --datadir ${GETHDATADIR} init ${GENESISJSON}
|
|
~/execution_clients/go-ethereum/build/bin/geth --catalyst --http --ws -http.api "engine" --nodiscover --miner.etherbase 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b --datadir ${GETHDATADIR} console
|