Increase bsc maxpeers to 200, use lightchaindata for fresh install detection
This commit is contained in:
parent
23dbdabe2a
commit
cda562577f
@ -8,9 +8,9 @@ INSTALL_DIR={{.Env.BackendInstallPath}}/{{.Coin.Alias}}
|
|||||||
DATA_DIR={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend
|
DATA_DIR={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend
|
||||||
|
|
||||||
GETH_BIN=$INSTALL_DIR/geth_linux
|
GETH_BIN=$INSTALL_DIR/geth_linux
|
||||||
CHAINDATA_DIR=$DATA_DIR/geth/chaindata
|
LIGHTCHAINDATA_DIR=$DATA_DIR/geth/lightchaindata
|
||||||
|
|
||||||
if [ ! -d "$CHAINDATA_DIR" ]; then
|
if [ ! -d "$LIGHTCHAINDATA_DIR" ]; then
|
||||||
$GETH_BIN init --datadir $DATA_DIR $INSTALL_DIR/genesis.json
|
$GETH_BIN init --datadir $DATA_DIR $INSTALL_DIR/genesis.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ $GETH_BIN \
|
|||||||
--ws.api eth,net,web3,debug,txpool \
|
--ws.api eth,net,web3,debug,txpool \
|
||||||
--ws.origins '*' \
|
--ws.origins '*' \
|
||||||
--syncmode full \
|
--syncmode full \
|
||||||
--maxpeers 100 \
|
--maxpeers 200 \
|
||||||
--rpc.allow-unprotected-txs \
|
--rpc.allow-unprotected-txs \
|
||||||
--txlookuplimit 0 \
|
--txlookuplimit 0 \
|
||||||
--cache 8000 \
|
--cache 8000 \
|
||||||
|
|||||||
@ -8,9 +8,9 @@ INSTALL_DIR={{.Env.BackendInstallPath}}/{{.Coin.Alias}}
|
|||||||
DATA_DIR={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend
|
DATA_DIR={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend
|
||||||
|
|
||||||
GETH_BIN=$INSTALL_DIR/geth_linux
|
GETH_BIN=$INSTALL_DIR/geth_linux
|
||||||
CHAINDATA_DIR=$DATA_DIR/geth/chaindata
|
LIGHTCHAINDATA_DIR=$DATA_DIR/geth/lightchaindata
|
||||||
|
|
||||||
if [ ! -d "$CHAINDATA_DIR" ]; then
|
if [ ! -d "$LIGHTCHAINDATA_DIR" ]; then
|
||||||
$GETH_BIN init --datadir $DATA_DIR $INSTALL_DIR/genesis.json
|
$GETH_BIN init --datadir $DATA_DIR $INSTALL_DIR/genesis.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ $GETH_BIN \
|
|||||||
--cache.gc 0 \
|
--cache.gc 0 \
|
||||||
--cache.trie 30 \
|
--cache.trie 30 \
|
||||||
--syncmode full \
|
--syncmode full \
|
||||||
--maxpeers 100 \
|
--maxpeers 200 \
|
||||||
--rpc.allow-unprotected-txs \
|
--rpc.allow-unprotected-txs \
|
||||||
--txlookuplimit 0 \
|
--txlookuplimit 0 \
|
||||||
--cache 8000 \
|
--cache 8000 \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user