commit fbf6af5d07691f35f0b5cd4c5705a0845cfa9cc4
parent 584e0a38aab5b978b4aa4bac414cf5b44eeb5b74
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 6 Mar 2020 12:40:42 +0100
fix test_lnpeer
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/electrum/tests/test_lnpeer.py b/electrum/tests/test_lnpeer.py
@@ -66,10 +66,13 @@ class MockNetwork:
def get_local_height(self):
return 0
- async def try_broadcasting(self, tx, name):
+ async def broadcast_transaction(self, tx):
if self.tx_queue:
await self.tx_queue.put(tx)
+ async def try_broadcasting(self, tx, name):
+ self.broadcast_transaction(tx)
+
class MockWallet:
def set_label(self, x, y):
pass