mirror of
https://github.com/aljazceru/plugins.git
synced 2026-01-08 15:54:20 +01:00
drain: fix broken success message format
This commit is contained in:
@@ -292,8 +292,8 @@ def try_for_htlc_fee(plugin, payload, peer_id, amount, chunk, spendable_before):
|
||||
if not result.get('status') == 'complete':
|
||||
return False # should not happen, but maybe API changes
|
||||
payload['success_msg'].append(f"{amount + fees}msat sent over {len(route)} "
|
||||
"hops to {payload['command']} {amount}msat "
|
||||
"[{chunk + 1}/{payload['chunks']}")
|
||||
f"hops to {payload['command']} {amount}msat "
|
||||
f"[{chunk + 1}/{payload['chunks']}")
|
||||
# we need to wait for HTLC to resolve, so remaining amounts
|
||||
# can be calculated correctly for the next chunk
|
||||
wait_ours(plugin, payload['scid'], ours)
|
||||
|
||||
Reference in New Issue
Block a user