Setup

Initializing the Geth Database

To create a blockchain node that uses this genesis block, first use geth init to import and sets the canonical genesis block for the new chain. This requires the path to genesis.json to be passed as an argument. You can find genesis.json on next page

geth init --datadir <path_to_data_dir> <path_to_genesis.json>

Bootnodes

You can see our default config file for

[Node]
DataDir = "/var/lib/geth"

[Eth]
NetworkId = 4999

[Node.P2P]
BootstrapNodes = ["enode://e2690da39257ded2fe8f107b0434e624c29a42fbaf05b0ecb45cb0c3369e61625a4ffa8fc0b7e6b2f7315cef61e9211a6a01ba46d9ad2ad7b79bd5ab9adeabf3@34.107.58.82:30303", "enode://f31ea6597830f1c4866601d427eeefa28e724861413182b29df73f050cca6fadbf1a2f25832c956f498679f9513946a18593c155c5714da0dfec4e6b6c20e78f@34.154.225.117:30303", "enode://2705810be88f7164d01717be5ae0a7451371e56ec78ad17d1d791a3f0fc42a1cac9aa63893778d0ea570bf1b2da74e25a1dd643773ce9828c24fa61b29728874@34.65.157.193:30303", "enode://53f61af1118571a3bf0fb9b031471058fa233f0bf864c5da74a9473219d0a8db2548a4f0399d7d9d1939cc65f827376c874efb6aa8cd60a70a3c48cd2e626972@34.91.173.199:30303"]

Put this as service job. Command-line arguments can also be moved to config file for convenience

geth --config <path_to_toml_file> --syncmode=full --gcmode=archive --cache 8192 --http --http.addr 0.0.0.0 --http.api eth,db,net,web3,txpool,clique,debug --http.rpcprefix /rpc --http.vhosts * --rpc.evmtimeout 0 --verbosity 4 --ignore-legacy-receipts --nat extip:<your_static_ip_address>

Command-line arguments documentation can be found here

Last updated