Skip to content

Commit 29d7710

Browse files
committed
make check-source fixes
1 parent 0f5c7a3 commit 29d7710

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

contrib/pyln-testing/pyln/testing/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def env(name, default=None):
8383
EXPERIMENTAL_DUAL_FUND = env("EXPERIMENTAL_DUAL_FUND", "0") == "1"
8484

8585

86-
8786
def wait_for(success, timeout=TIMEOUT):
8887
start_time = time.time()
8988
interval = 0.25
@@ -514,6 +513,7 @@ def getnewaddress(self):
514513
info = self.rpc.getaddressinfo(addr)
515514
return info['unconfidential']
516515

516+
517517
class RemoteSignerD(TailableProc):
518518
def __init__(self, rsignerd_dir, rsignerd_port):
519519
TailableProc.__init__(self, rsignerd_dir)
@@ -546,6 +546,7 @@ def stop(self, timeout=10):
546546
logging.info("rsignerd stopped")
547547
return rc
548548

549+
549550
class LightningD(TailableProc):
550551
def __init__(self, lightning_dir, bitcoindproxy, port=9735, random_hsm=False, node_id=0):
551552
TailableProc.__init__(self, lightning_dir)
@@ -556,7 +557,7 @@ def __init__(self, lightning_dir, bitcoindproxy, port=9735, random_hsm=False, no
556557
self.disconnect_file = None
557558
self.lightning_dir = lightning_dir
558559
self.rsignerd_dir = os.path.join(lightning_dir, "remotesigner")
559-
560+
560561
self.rpcproxy = bitcoindproxy
561562

562563
self.opts = LIGHTNINGD_CONFIG.copy()
@@ -635,7 +636,7 @@ def start(self, stdin=None, stdout=None, stderr=None,
635636
if wait_for_initialized:
636637
self.wait_for_log("Server started with public key")
637638
logging.info("LightningD started")
638-
except:
639+
except Exception:
639640
# LightningD didn't start, stop the remotesigner
640641
self.rsignerd.stop()
641642
raise

contrib/remote_hsmd/hsmd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include <hsmd/capabilities.h>
4343
/*~ _wiregen files are autogenerated by tools/generate-wire.py */
4444
#include <hsmd/hsmd_wiregen.h>
45-
#include <contrib/remote_hsmd/proxy.hpp>
4645
#include <inttypes.h>
4746
#include <secp256k1_ecdh.h>
4847
#include <sodium.h>
@@ -54,6 +53,8 @@
5453
#include <wire/peer_wire.h>
5554
#include <wire/wire_io.h>
5655

56+
#include <contrib/remote_hsmd/proxy.hpp>
57+
5758
/*~ Each subdaemon is started with stdin connected to lightningd (for status
5859
* messages), and stderr untouched (for emergency printing). File descriptors
5960
* 3 and beyond are set up on other sockets: for hsmd, fd 3 is the request

tests/test_opening.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
only_one, wait_for, sync_blockheight, first_channel_id, calc_lease_fee
66
)
77

8+
import os
89
import pytest
910
import re
1011
import unittest
@@ -240,7 +241,6 @@ def test_v2_open_sigs_restart_while_dead(node_factory, bitcoind):
240241

241242
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
242243
@pytest.mark.openchannel('v2')
243-
## @unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
244244
def test_v2_rbf_single(node_factory, bitcoind, chainparams):
245245
l1, l2 = node_factory.get_nodes(2, opts={'wumbo': None})
246246

0 commit comments

Comments
 (0)