You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is about how we estimate the feerate of an unsigned transaction after creation. It's different from #1132 and #1371, which are about how we set the fee when creating a transaction.
This function is used by the GUI to display the estimated feerate of an unsigned PSBT as well as by the daemon to perform sanity checks on a PSBT after creation. By underestimating the weight, we may overestimate the feerate.
The suggested fix is to use tx.weight() + 2 if tx has >= 1 input and all these inputs have empty witnesses.
The text was updated successfully, but these errors were encountered:
This is taken from #1371 (comment).
This issue is about how we estimate the feerate of an unsigned transaction after creation. It's different from #1132 and #1371, which are about how we set the fee when creating a transaction.
The issue concerns the following function:
liana/src/descriptors/mod.rs
Lines 541 to 557 in cbc46e9
It seems to estimate the weight to be 2 less than the true weight of the signed transaction. I think this is because we call
tx.weight()
where all inputs oftx
have empty witnesses, and so the transaction is serialized as non-Segwit:https://docs.rs/bitcoin/0.31.0/src/bitcoin/blockdata/transaction.rs.html#752-753
https://docs.rs/bitcoin/0.31.0/src/bitcoin/blockdata/transaction.rs.html#968-979
This function is used by the GUI to display the estimated feerate of an unsigned PSBT as well as by the daemon to perform sanity checks on a PSBT after creation. By underestimating the weight, we may overestimate the feerate.
The suggested fix is to use
tx.weight() + 2
iftx
has >= 1 input and all these inputs have empty witnesses.The text was updated successfully, but these errors were encountered: