wallet: Allow limiting the selection by confirmation height

This allows us to specify that an output must have been confirmed before the
given maximum height. This allows us to specify a minimum number of
confirmations for an output to be selected.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2019-02-21 20:13:20 +01:00
committed by Rusty Russell
parent 4986d6b39d
commit 68fe5eacde
7 changed files with 29 additions and 11 deletions

View File

@@ -891,7 +891,7 @@ static struct command_result *json_fund_channel(struct command *cmd,
}
res = wtx_select_utxos(&fc->wtx, *feerate_per_kw,
BITCOIN_SCRIPTPUBKEY_P2WSH_LEN);
BITCOIN_SCRIPTPUBKEY_P2WSH_LEN, 0);
if (res)
return res;