diff --git a/electrum/tests/test_lnpeer.py b/electrum/tests/test_lnpeer.py index 3ecd5cb65..9b3fce90b 100644 --- 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