Prevent shadowing the global dustRelayFee.
This commit is contained in:
parent
ea6fde3f1d
commit
43c587738d
1 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
|
||||||
CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFee)
|
CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFeeIn)
|
||||||
{
|
{
|
||||||
// "Dust" is defined in terms of dustRelayFee,
|
// "Dust" is defined in terms of dustRelayFee,
|
||||||
// which has units satoshis-per-kilobyte.
|
// which has units satoshis-per-kilobyte.
|
||||||
|
@ -44,12 +44,12 @@ CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFee)
|
||||||
nSize += (32 + 4 + 1 + 107 + 4); // the 148 mentioned above
|
nSize += (32 + 4 + 1 + 107 + 4); // the 148 mentioned above
|
||||||
}
|
}
|
||||||
|
|
||||||
return 3 * dustRelayFee.GetFee(nSize);
|
return 3 * dustRelayFeeIn.GetFee(nSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsDust(const CTxOut& txout, const CFeeRate& dustRelayFee)
|
bool IsDust(const CTxOut& txout, const CFeeRate& dustRelayFeeIn)
|
||||||
{
|
{
|
||||||
return (txout.nValue < GetDustThreshold(txout, dustRelayFee));
|
return (txout.nValue < GetDustThreshold(txout, dustRelayFeeIn));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue