mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
reservations: add weight of fee-output to weight calculation
have the estimated fee include all the weight, even fee outputs
This commit is contained in:
@@ -393,6 +393,8 @@ fee_calc:
|
||||
struct amount_sat est_fee =
|
||||
amount_tx_fee(feerate_per_kw, weight);
|
||||
psbt_append_output(psbt, NULL, est_fee);
|
||||
/* Add additional weight of fee output */
|
||||
weight += bitcoin_tx_output_weight(0);
|
||||
}
|
||||
response = json_stream_success(cmd);
|
||||
json_add_psbt(response, "psbt", psbt);
|
||||
|
||||
Reference in New Issue
Block a user