1
0

Define network.try_broadcasting() method.

Use it when rebroadcasting a force-close tx,
because the channel state is already set.
This commit is contained in:
ThomasV
2020-02-16 12:59:09 +01:00
parent dba6cb8a96
commit 36f32651cc
3 changed files with 14 additions and 15 deletions

View File

@@ -64,7 +64,7 @@ class MockNetwork:
def get_local_height(self):
return 0
async def broadcast_transaction(self, tx):
async def try_broadcasting(self, tx, name):
if self.tx_queue:
await self.tx_queue.put(tx)