mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-15 12:04:18 +01:00
txprepare: elements requires inclusion of an accurate fee output
so we add an accurate one
This commit is contained in:
@@ -191,6 +191,10 @@ static struct command_result *finish_txprepare(struct command *cmd,
|
||||
psbt_add_output(txp->psbt, out, i);
|
||||
}
|
||||
|
||||
/* If this is elements, we should normalize
|
||||
* the PSBT fee output */
|
||||
psbt_elements_normalize_fees(txp->psbt);
|
||||
|
||||
utx = tal(NULL, struct unreleased_tx);
|
||||
utx->psbt = tal_steal(utx, txp->psbt);
|
||||
psbt_txid(txp->psbt, &utx->txid, &utx->tx);
|
||||
|
||||
Reference in New Issue
Block a user