mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
Update libwally to 0.8.8, support PSBTv2
Libwally update breaks compatibility, so we do this in one large step. Changelog-Changed: JSON-RPC: elements network PSET now only supports PSETv2. Changelog-Added: JSON-RPC: PSBTv2 supported for fundchannel_complete, openchannel_update, reserveinputs, sendpsbt, signpsbt, withdraw and unreserveinputs parameter psbt, openchannel_init and openchannel_bump parameter initialpsbt, openchannel_signed parameter signed_psbt and utxopsbt parameter utxopsbt
This commit is contained in:
committed by
Rusty Russell
parent
5eddf3cd73
commit
908f834d66
@@ -216,7 +216,7 @@ static struct command_result *finish_txprepare(struct command *cmd,
|
||||
utx = tal(NULL, struct unreleased_tx);
|
||||
utx->is_upgrade = txp->is_upgrade;
|
||||
utx->psbt = tal_steal(utx, txp->psbt);
|
||||
psbt_txid(utx, txp->psbt, &utx->txid, &utx->tx);
|
||||
psbt_txid(utx, utx->psbt, &utx->txid, &utx->tx);
|
||||
|
||||
/* If this is a withdraw, we sign and send immediately. */
|
||||
if (txp->is_withdraw) {
|
||||
@@ -301,6 +301,11 @@ static struct command_result *psbt_created(struct command *cmd,
|
||||
psbttok->end - psbttok->start,
|
||||
buf + psbttok->start);
|
||||
|
||||
if (!psbt_set_version(txp->psbt, 2)) {
|
||||
return command_fail(cmd, LIGHTNINGD,
|
||||
"Unable to convert PSBT to version 2.");
|
||||
}
|
||||
|
||||
if (!json_to_number(buf, json_get_member(buf, result, "feerate_per_kw"),
|
||||
&txp->feerate))
|
||||
return command_fail(cmd, LIGHTNINGD,
|
||||
|
||||
Reference in New Issue
Block a user