tcall force_close_channel on LNWorker, not Peer - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 9cf7aa054d24b84c023fda1ed87a27dcb2b2a4e6 DIR parent c570bc5fb1a9479264d8c36816349b0398d52991 HTML Author: Janus <ysangkok@gmail.com> Date: Mon, 5 Nov 2018 18:47:39 +0100 call force_close_channel on LNWorker, not Peer Diffstat: M electrum/tests/test_lnbase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/tests/test_lnbase.py b/electrum/tests/test_lnbase.py t@@ -88,6 +88,7 @@ class MockLNWorker: _create_route_from_invoice = LNWorker._create_route_from_invoice _check_invoice = staticmethod(LNWorker._check_invoice) _pay_to_route = LNWorker._pay_to_route + force_close_channel = LNWorker.force_close_channel class MockTransport: def __init__(self): t@@ -203,7 +204,7 @@ class TestPeer(unittest.TestCase): addr = w1._check_invoice(pay_req) route = w1._create_route_from_invoice(decoded_invoice=addr) - run(p1.force_close_channel(self.alice_channel.channel_id)) + run(w1.force_close_channel(self.alice_channel.channel_id)) # check if a tx (commitment transaction) was broadcasted: assert q1.qsize() == 1