diff --git a/docker/XDCchain/entrypoint.sh b/docker/XDCchain/entrypoint.sh old mode 100644 new mode 100755 index 8c217e831f..2f21edf521 --- a/docker/XDCchain/entrypoint.sh +++ b/docker/XDCchain/entrypoint.sh @@ -28,7 +28,7 @@ accountsCount=$( # file to env for env in IDENTITY PASSWORD PRIVATE_KEY BOOTNODES WS_SECRET NETSTATS_HOST \ - NETSTATS_PORT EXTIP SYNC_MODE NETWORK_ID ANNOUNCE_TXS STORE_REWARD DEBUG_MODE; do + NETSTATS_PORT EXTIP SYNC_MODE NETWORK_ID ANNOUNCE_TXS STORE_REWARD; do file=$(eval echo "\$${env}_FILE") if [[ -f $file ]] && [[ ! -z $file ]]; then echo "Replacing $env by $file" @@ -55,7 +55,7 @@ if [[ ! -z $NETWORK_ID ]]; then ;; 89 ) genesisPath="testnet.json" - params="$params --XDC-testnet --gcmode archive --rpcapi db,eth,net,web3,personal,debug" + params="$params --XDC-testnet" ;; 90 ) genesisPath="devnet.json" @@ -150,11 +150,6 @@ if [[ ! -z $STORE_REWARD ]]; then params="$params --store-reward" fi -# debug mode -if [[ ! -z $DEBUG_MODE ]]; then - params="$params --gcmode archive --rpcapi db,eth,net,web3,personal,debug" -fi - # dump echo "dump: $IDENTITY $account $BOOTNODES" @@ -167,7 +162,7 @@ exec XDC $params \ --identity $IDENTITY \ --password ./password \ --port 30303 \ - --maxpeers 200 \ + --maxpeers 25 \ --txpool.globalqueue 5000 \ --txpool.globalslots 5000 \ --rpc \ @@ -180,6 +175,6 @@ exec XDC $params \ --wsport 8546 \ --wsorigins "*" \ --mine \ - --gasprice "250000000" \ + --gasprice "2500" \ --targetgaslimit "84000000" \ - "$@" \ No newline at end of file + "$@"