Skip to content

Instantly share code, notes, and snippets.

@michael1011
Last active July 8, 2021 21:42
Show Gist options
  • Save michael1011/d57056849c4a71d7d012198ce0c8d19d to your computer and use it in GitHub Desktop.
Save michael1011/d57056849c4a71d7d012198ce0c8d19d to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
set -x #echo on
BOR_DIR=${BOR_DIR:-~/.bor}
DATA_DIR=$BOR_DIR/data
bor --datadir $DATA_DIR \
--port 30303 \
--http --http.addr '0.0.0.0' \
--http.vhosts '*' \
--http.corsdomain '*' \
--http.port 8545 \
--ipcpath $DATA_DIR/bor.ipc \
--http.api 'eth,net,web3,txpool,bor' \
--syncmode 'full' \
--networkid '137' \
--miner.gaslimit '20000000' \
--miner.gastarget '20000000' \
--txpool.nolocals \
--txpool.accountslots 16 \
--txpool.globalslots 131072 \
--txpool.accountqueue 64 \
--txpool.globalqueue 131072 \
--txpool.lifetime '1h30m0s' \
--maxpeers 200 \
--metrics \
--snapshot=false \
--cache=16384 \
--pprof --pprof.port 7071 --pprof.addr '0.0.0.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment