Skip to content

Commit

Permalink
jitrebalance: fix missing payment_secret for sendpay
Browse files Browse the repository at this point in the history
  • Loading branch information
m-schmoock committed Jul 23, 2021
1 parent 87c9f56 commit 4247704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jitrebalance/test_jitrebalance.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def no_pending_htlcs():

# Now test the timeout on number of attempts
l3.rpc.plugin_start(hold_plugin)
l1.rpc.sendpay(route, inv['payment_hash'])
l1.rpc.sendpay(route, inv['payment_hash'], payment_secret=inv.get('payment_secret'))
# l3 will hold on the HTLC, and at the time it rejects it, l2 won't try
# other routes as it exceeded its timeout
with pytest.raises(RpcError, match='WIRE_TEMPORARY_CHANNEL_FAILURE'):
Expand Down

0 comments on commit 4247704

Please sign in to comment.