Skip to content

Commit 43c5877

Browse files
committed
Prevent shadowing the global dustRelayFee.
1 parent ea6fde3 commit 43c5877

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)