mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-01-21 15:24:24 +01:00
This commit corrects a bug in TxWeightEstimator that could result in underestimations for transactions involving NestedP2WPKH and NestedP2WSH inputs. The scriptSig data push is now accounted for in a proper size constant, and the input count is now incremented in both. This would only be detectable in the event that the number of non-nested inputs and the total number of inputs straddle the discontinuities in the CompactSize encoding, e.g. 253, 2^16-1, or 2^32-1.