mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
elements: Add elements overhead to sweep transactions
Turns out we weren't yet.
This commit is contained in:
parent
37fb912524
commit
81abf14142
@ -332,6 +332,7 @@ static struct bitcoin_tx *tx_to_us(const tal_t *ctx,
|
||||
|
||||
/* Worst-case sig is 73 bytes */
|
||||
weight = bitcoin_tx_weight(tx) + 1 + 3 + 73 + 0 + tal_count(wscript);
|
||||
weight = elements_add_overhead(weight, 1, 1);
|
||||
fee = amount_tx_fee(feerate_per_kw, weight);
|
||||
|
||||
/* Result is trivial? Spend with small feerate, but don't wait
|
||||
|
Loading…
Reference in New Issue
Block a user