SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f116dad6ec1f5be87ef09825938f6a9ad7c9784b
parent 7a24bc14df03f103dbceaa9e0b6bea4336250b21
Author: Kristaps Kaupe <kristaps@blogiem.lv>
Date:   Fri,  1 Apr 2022 04:48:44 +0300

Fix connecting to non-localhost clearnet bitcoind (#62)

Bug introduced with 52b9eb7e0afa250fff5353b41200c95a29b8bdc8
Diffstat:
Mnode/bitcoind.py | 6+++---
Msatsale.py | 2+-
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/node/bitcoind.py b/node/bitcoind.py @@ -37,13 +37,13 @@ class btcd: connection_str = "http://{}:{}@{}:{}/wallet/{}".format( username, password, - config.host, + self.config['host'], self.config['rpcport'], self.config['wallet'], ) logging.info( - "Attempting to connect to Bitcoin node RPC with user {}.".format( - self.config['username'] + "Attempting to connect to Bitcoin node RPC to {}:{} with user {}.".format( + self.config['host'], self.config['rpcport'], self.config['username'] ) ) else: diff --git a/satsale.py b/satsale.py @@ -343,7 +343,7 @@ api.add_resource(complete_payment, "/api/completepayment") # Test connections on startup: enabled_payment_methods = [] for method in config.payment_methods: - print(method) + #print(method) if method['name'] == "bitcoind": bitcoin_node = bitcoind.btcd(method) logging.info("Connection to bitcoin node successful.")