File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFeeIn)
22
22
// so dust is a spendable txout less than
23
23
// 182*dustRelayFee/1000 (in satoshis).
24
24
// 546 satoshis at the default rate of 3000 sat/kvB.
25
- // A typical spendable segwit txout is 31 bytes big, and will
25
+ // A typical spendable segwit P2WPKH txout is 31 bytes big, and will
26
26
// need a CTxIn of at least 67 bytes to spend:
27
27
// so dust is a spendable txout less than
28
28
// 98*dustRelayFee/1000 (in satoshis).
@@ -34,6 +34,11 @@ CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFeeIn)
34
34
int witnessversion = 0 ;
35
35
std::vector<unsigned char > witnessprogram;
36
36
37
+ // Note this computation is for spending a Segwit v0 P2WPKH output (a 33 bytes
38
+ // public key + an ECDSA signature). For Segwit v1 Taproot outputs the minimum
39
+ // satisfaction is lower (a single BIP340 signature) but this computation was
40
+ // kept to not further reduce the dust level.
41
+ // See discussion in https://github.com/bitcoin/bitcoin/pull/22779 for details.
37
42
if (txout.scriptPubKey .IsWitnessProgram (witnessversion, witnessprogram)) {
38
43
// sum the sizes of the parts of a transaction input
39
44
// with 75% segwit discount applied to the script size.
You can’t perform that action at this time.
0 commit comments