diff --git a/tests/test_framework/bitcoind.py b/tests/test_framework/bitcoind.py index a8a49b7e..b7699519 100644 --- a/tests/test_framework/bitcoind.py +++ b/tests/test_framework/bitcoind.py @@ -68,7 +68,7 @@ class Bitcoind(BitcoinBackend): "-debugexclude=tor", ] bitcoind_conf = { - "port": self.p2pport, + "bind": f"127.0.0.1:{self.p2pport}", "rpcport": rpcport, "fallbackfee": Decimal(1000) / COIN, "rpcthreads": 32, diff --git a/tests/test_framework/utils.py b/tests/test_framework/utils.py index c48edc48..9ca6ef4d 100644 --- a/tests/test_framework/utils.py +++ b/tests/test_framework/utils.py @@ -375,7 +375,8 @@ class TailableProc(object): self.logs_cond.notifyAll() self.running = False self.proc.stdout.close() - self.proc.stderr.close() + if self.proc.stderr is not None: + self.proc.stderr.close() def is_in_log(self, regex, start=0): """Look for `regex` in the logs."""