Skip to content

Commit a4ca0b0

Browse files
author
MarcoFalke
committed
Merge #10431: Prevent shadowing the global dustRelayFee
43c5877 Prevent shadowing the global dustRelayFee. (Pavel Janík) Tree-SHA512: 9765931a7753c484990003396afd0bb65a53f42d1cad9502017720618ce90b3c5ae68591db01e3524adecdbe6925a5eeeebf04012ba644ef3b65073af207ae5d
2 parents 6b99daf + 43c5877 commit a4ca0b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/policy/policy.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include <boost/foreach.hpp>
1717

18-
CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFee)
18+
CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFeeIn)
1919
{
2020
// "Dust" is defined in terms of dustRelayFee,
2121
// which has units satoshis-per-kilobyte.
@@ -44,12 +44,12 @@ CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFee)
4444
nSize += (32 + 4 + 1 + 107 + 4); // the 148 mentioned above
4545
}
4646

47-
return 3 * dustRelayFee.GetFee(nSize);
47+
return 3 * dustRelayFeeIn.GetFee(nSize);
4848
}
4949

50-
bool IsDust(const CTxOut& txout, const CFeeRate& dustRelayFee)
50+
bool IsDust(const CTxOut& txout, const CFeeRate& dustRelayFeeIn)
5151
{
52-
return (txout.nValue < GetDustThreshold(txout, dustRelayFee));
52+
return (txout.nValue < GetDustThreshold(txout, dustRelayFeeIn));
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)