Skip to content

Commit 491ae90

Browse files
committed
xpay: don't actually resolved the bip353 and fetch an invoice if we're just checking!
Signed-off-by: Rusty Russell <[email protected]>
1 parent ddd6579 commit 491ae90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/xpay/xpay.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,9 @@ static struct command_result *json_xpay_params(struct command *cmd,
18281828
xparams->dev_maxparts = *maxparts;
18291829
xparams->bip353 = invstring;
18301830

1831+
if (command_check_only(cmd))
1832+
return command_check_done(cmd);
1833+
18311834
req = jsonrpc_request_start(cmd, "fetchbip353",
18321835
bip353_fetched,
18331836
forward_error, xparams);

0 commit comments

Comments
 (0)