mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-02-02 13:14:33 +01:00
rpc_passwd -> rpc_password. The former can be confusing since the bitcoind parameter is rpcpassword. Avoiding that.
This commit is contained in:
@@ -9,7 +9,7 @@ LOG_PREFIX = "teos"
|
||||
# Default conf fields
|
||||
DEFAULT_CONF = {
|
||||
"BTC_RPC_USER": {"value": "user", "type": str},
|
||||
"BTC_RPC_PASSWD": {"value": "passwd", "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_NETWORK": {"value": "mainnet", "type": str},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[bitcoind]
|
||||
btc_rpc_user = user
|
||||
btc_rpc_passwd = passwd
|
||||
btc_rpc_password = passwd
|
||||
btc_rpc_connect = localhost
|
||||
btc_rpc_port = 8332
|
||||
btc_network = mainnet
|
||||
|
||||
@@ -173,7 +173,7 @@ if __name__ == "__main__":
|
||||
if opt in ["--btcrpcuser"]:
|
||||
command_line_conf["BTC_RPC_USER"] = arg
|
||||
if opt in ["--btcrpcpassword"]:
|
||||
command_line_conf["BTC_RPC_PASSWD"] = arg
|
||||
command_line_conf["BTC_RPC_PASSWORD"] = arg
|
||||
if opt in ["--btcrpcconnect"]:
|
||||
command_line_conf["BTC_RPC_CONNECT"] = arg
|
||||
if opt in ["--btcrpcport"]:
|
||||
|
||||
@@ -26,7 +26,7 @@ def bitcoin_cli(btc_connect_params):
|
||||
"http://%s:%s@%s:%d"
|
||||
% (
|
||||
btc_connect_params.get("BTC_RPC_USER"),
|
||||
btc_connect_params.get("BTC_RPC_PASSWD"),
|
||||
btc_connect_params.get("BTC_RPC_PASSWORD"),
|
||||
btc_connect_params.get("BTC_RPC_CONNECT"),
|
||||
btc_connect_params.get("BTC_RPC_PORT"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user