Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
refactor: rename TENDERMINT_CORE_... envs to TENDERMINT_RPC_...
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Apr 1, 2020
1 parent b5b0eda commit 98c6ad0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ NETWORK = testnet
# Time in ms for garbage collecting inactive bloomfiltering clients
BLOOM_FILTER_PERSISTENCE_TIMEOUT = 60000

TENDERMINT_CORE_HOST=localhost
TENDERMINT_CORE_PORT=26657
TENDERMINT_RPC_HOST=localhost
TENDERMINT_RPC_PORT=26657

# SERVICE_IMAGE_DRIVE= # Drive image name, if omitted dashpay/dashrive is used
# SERVICE_IMAGE_DAPI= # DAPI image name, if omitted dashpay/dapi is used
Expand Down
8 changes: 4 additions & 4 deletions lib/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const OPTIONS = {
DRIVE_RPC_PORT: 'DRIVE_RPC_PORT',
NETWORK: 'NETWORK',
BLOOM_FILTER_PERSISTENCE_TIMEOUT: 'BLOOM_FILTER_PERSISTENCE_TIMEOUT',
TENDERMINT_CORE_HOST: 'TENDERMINT_CORE_HOST',
TENDERMINT_CORE_PORT: 'TENDERMINT_CORE_PORT',
TENDERMINT_RPC_HOST: 'TENDERMINT_RPC_HOST',
TENDERMINT_RPC_PORT: 'TENDERMINT_RPC_PORT',
};

const DEFAULT_CONFIG = {};
Expand Down Expand Up @@ -94,7 +94,7 @@ module.exports = {
port: parseInt(config[OPTIONS.DRIVE_RPC_PORT], 10),
},
tendermintCore: {
host: config[OPTIONS.TENDERMINT_CORE_HOST],
port: parseInt(config[OPTIONS.TENDERMINT_CORE_PORT], 10),
host: config[OPTIONS.TENDERMINT_RPC_HOST],
port: parseInt(config[OPTIONS.TENDERMINT_RPC_PORT], 10),
},
};

0 comments on commit 98c6ad0

Please sign in to comment.