mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 14:44:21 +01:00
general - Adds default RPC port based on network param
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user