drain: fix broken success message format

This commit is contained in:
Michael Schmoock
2021-11-18 13:05:44 +01:00
parent 2560a9a85f
commit e200c888d4

View File

@@ -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)