From 73a67fbb3e94235e929c3beda1faabb37322c8d1 Mon Sep 17 00:00:00 2001 From: niftynei Date: Sat, 29 Jul 2023 20:43:28 -0500 Subject: [PATCH] funder: don't re-reserve utxos on retries This way unreserving the PSBT will work as intended, and we don't have to keep track of how many times we've called reserved for any one input. Technically we're supposed to not reserve inputs at *all* while doing opens, this moves us slightly closer to that. --- plugins/funder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/funder.c b/plugins/funder.c index 478a99f9c..5e08370dd 100644 --- a/plugins/funder.c +++ b/plugins/funder.c @@ -695,6 +695,8 @@ listfunds_success(struct command *cmd, committed_funds, avail_utxos); json_add_bool(req->js, "reservedok", true); + /* We don't re-reserve any UTXOS :) */ + json_add_num(req->js, "reserve", 0); } else { req = jsonrpc_request_start(cmd->plugin, cmd, "fundpsbt",