From c2aadd0e54e90063c233e507ebd7e9b23d9a872d Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 4 Jan 2020 19:39:56 +0900 Subject: [PATCH] Add seednode environment variables for BSQ explorer usage --- seednode/bisq-seednode.env | 10 +++++++--- seednode/bisq-seednode.service | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/seednode/bisq-seednode.env b/seednode/bisq-seednode.env index 5a8ca791013..c785b0a39ba 100644 --- a/seednode/bisq-seednode.env +++ b/seednode/bisq-seednode.env @@ -17,11 +17,15 @@ BITCOIN_RPC_BLOCKNOTIFY_PORT=5120 # bisq seednode settings BISQ_APP_NAME=bisq-seednode -BISQ_DATA_DIR=__BISQ_HOME__ +BISQ_HOME=__BISQ_HOME__ +BISQ_DATA_DIR="${BISQ_HOME}/${BISQ_APP_NAME}/${BISQ_BASE_CURRENCY}" +BISQ_JSON_DIR="${BISQ_DATA_DIR}/db/json" BISQ_NODE_PORT=8000 BISQ_MAX_CONNECTIONS=50 BISQ_MAX_MEMORY=8000 -BISQ_BASE_CURRENCY=BTC_MAINNET +BISQ_BASE_CURRENCY=btc_mainnet -# set to true for BSQ explorer +# BSQ explorer settings +# don't enable this unless seednode is used for BSQ explorer only BISQ_DUMP_BLOCKCHAIN=false +BSQ_EXPLORER_ROOT="${BISQ_HOME}/bisq-explorer/www" diff --git a/seednode/bisq-seednode.service b/seednode/bisq-seednode.service index 713e9bf43af..226c4ef7f7e 100644 --- a/seednode/bisq-seednode.service +++ b/seednode/bisq-seednode.service @@ -6,7 +6,7 @@ After=network.target [Service] EnvironmentFile=/etc/default/bisq-seednode.env -ExecStart=__BISQ_HOME__/__BISQ_REPO_NAME__/bisq-seednode --appName=${BISQ_APP_NAME} --nodePort=${BISQ_NODE_PORT} --userDataDir=${BISQ_DATA_DIR} --maxConnections=${BISQ_MAX_CONNECTIONS} --maxMemory=${BISQ_MAX_MEMORY} --fullDaoNode=true --rpcUser=${BITCOIN_RPC_USERNAME} --rpcPassword=${BITCOIN_RPC_PASSWORD} --rpcPort=${BITCOIN_RPC_PORT} --rpcBlockNotificationPort=${BITCOIN_RPC_BLOCKNOTIFY_PORT} --baseCurrencyNetwork=${BISQ_BASE_CURRENCY} --dumpBlockchainData=${BISQ_DUMP_BLOCKCHAIN} +ExecStart=__BISQ_HOME__/__BISQ_REPO_NAME__/bisq-seednode --appName=${BISQ_APP_NAME} --nodePort=${BISQ_NODE_PORT} --userDataDir=${BISQ_HOME} --maxConnections=${BISQ_MAX_CONNECTIONS} --maxMemory=${BISQ_MAX_MEMORY} --fullDaoNode=true --rpcUser=${BITCOIN_RPC_USERNAME} --rpcPassword=${BITCOIN_RPC_PASSWORD} --rpcPort=${BITCOIN_RPC_PORT} --rpcBlockNotificationPort=${BITCOIN_RPC_BLOCKNOTIFY_PORT} --baseCurrencyNetwork=${BISQ_BASE_CURRENCY} --dumpBlockchainData=${BISQ_DUMP_BLOCKCHAIN} ExecStop=/bin/kill -TERM ${MAINPID} Restart=on-failure