Skip to content

Commit 10c8d63

Browse files
Lagrang3cdecker
authored andcommitted
gl-client-py: make retry_for optional
retry_for argument in pay is optional in core-lightning let's keep it that way also during tests. We were trying to intercept pay requests and redirect them to xpay and renepay but with retry_for=0 renepay would inmediately fail. Signed-off-by: Lagrang3 <[email protected]>
1 parent 38c3b84 commit 10c8d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/gl-client-py/glclient/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def pay(
397397
self,
398398
bolt11: str,
399399
amount_msat: Optional[clnpb.Amount] = None,
400-
retry_for: int = 0,
400+
retry_for: Optional[int] = None,
401401
maxfee: Optional[clnpb.Amount] = None,
402402
maxfeepercent: Optional[float] = None,
403403
) -> clnpb.PayResponse:

0 commit comments

Comments
 (0)