general - Adds default RPC port based on network param

This commit is contained in:
Sergi Delgado Segura
2020-06-11 15:59:08 +02:00
parent 4621a08dc5
commit 782806595c
6 changed files with 66 additions and 27 deletions

View File

@@ -1,4 +1,5 @@
import os
from common.constants import MAINNET_RPC_PORT
DATA_DIR = os.path.expanduser("~/.teos/")
CONF_FILE_NAME = "teos.conf"
@@ -11,7 +12,7 @@ DEFAULT_CONF = {
"BTC_RPC_USER": {"value": "user", "type": str},
"BTC_RPC_PASSWORD": {"value": "passwd", "type": str},
"BTC_RPC_CONNECT": {"value": "127.0.0.1", "type": str},
"BTC_RPC_PORT": {"value": 8332, "type": int},
"BTC_RPC_PORT": {"value": MAINNET_RPC_PORT, "type": int},
"BTC_NETWORK": {"value": "mainnet", "type": str},
"BTC_FEED_PROTOCOL": {"value": "tcp", "type": str},
"BTC_FEED_CONNECT": {"value": "localhost", "type": str},