1
0

submarine swaps: use num_sats_can_receive_no_mpp, to prevent funds being locked

This commit is contained in:
ThomasV
2021-03-26 16:27:32 +01:00
parent bdd9c4823f
commit 41f22df26b
4 changed files with 18 additions and 4 deletions

View File

@@ -225,6 +225,11 @@ class SwapManager(Logger):
callback = lambda: self._claim_swap(swap)
self.lnwatcher.add_callback(swap.lockup_address, callback)
def num_sats_can_receive(self):
# finding how to do MPP is too hard for sender,
# might result in our coins being locked
return self.lnworker.num_sats_can_receive_no_mpp()
async def normal_swap(
self,
*,