Builds from source only on tagged releases from https://github.com/eden-network/eden-geth
91
Convenience Wrapper
#!/bin/bash
:'
Go Ethereum
init_node
query_enode
start_node
$network = "goerli"
else == mainnet
'
init_node() {
echo "Eden Client Starting..."
}
query_enode() {
TARGET_RESPONSE=$(curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":1}' "localhost:8545" )
TARGET_ENODE=$(echo ${TARGET_RESPONSE}| jq -r '.result.enode')
echo "$TARGET_ENODE"
}
start_node() {
if [ $network = "goerli" ]
then
geth \
--port $netport \
--http \
--http.addr 0.0.0.0 \
--http.port $rpcport \
--http.api eth,net,web3 \
--http.vhosts '*' \
--http.corsdomain '*' \
--graphql \
--graphql.corsdomain '*' \
--graphql.vhosts '*' \
--ws \
--ws.addr 0.0.0.0 \
--ws.port $wsport \
--ws.api eth,net,web3 \
--ws.origins '*' \
--syncmode $syncmode \
--gcmode archive \
--cache 4096 \
--maxpeers $connections \
--goerli
if [ $? -ne 0 ]
then
echo "Node failed to start; exiting."
exit 1
fi
else
geth \
--port $netport \
--http \
--http.addr 0.0.0.0 \
--http.port $rpcport \
--http.api eth,net,web3 \
--http.vhosts '*' \
--http.corsdomain '*' \
--graphql \
--graphql.corsdomain '*' \
--graphql.vhosts '*' \
--ws \
--ws.addr 0.0.0.0 \
--ws.port $wsport \
--ws.api eth,net,web3 \
--ws.origins '*' \
--syncmode $syncmode \
--gcmode archive \
--cache 4096 \
--snapshot=false \
--maxpeers $connections
if [ $? -ne 0 ]
then
echo "Node failed to start; exiting."
exit 1
fi
fi
}
init_node
start_node
Content type
Image
Digest
Size
22.5 MB
Last updated
about 5 years ago
docker pull openmev/eden-client:v1.10.8-eden1.1.0