Rename CClaimTrieCache to CClaimTrieUpdateBuffer #156
2 changed files with 3 additions and 4 deletions
|
@ -177,8 +177,7 @@ public:
|
||||||
|
|
||||||
bool IsDust(const CFeeRate &minRelayTxFee) const
|
bool IsDust(const CFeeRate &minRelayTxFee) const
|
||||||
{
|
{
|
||||||
return false;
|
return (nValue < GetDustThreshold(minRelayTxFee));
|
||||||
// return (nValue < GetDustThreshold(minRelayTxFee));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
friend bool operator==(const CTxOut& a, const CTxOut& b)
|
friend bool operator==(const CTxOut& a, const CTxOut& b)
|
||||||
|
|
|
@ -340,8 +340,8 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
|
||||||
CAmount nDustThreshold = 182 * minRelayTxFee.GetFeePerK()/1000 * 3;
|
CAmount nDustThreshold = 182 * minRelayTxFee.GetFeePerK()/1000 * 3;
|
||||||
BOOST_CHECK_EQUAL(nDustThreshold, 546);
|
BOOST_CHECK_EQUAL(nDustThreshold, 546);
|
||||||
// dust:
|
// dust:
|
||||||
//t.vout[0].nValue = nDustThreshold - 1;
|
t.vout[0].nValue = nDustThreshold - 1;
|
||||||
//BOOST_CHECK(!IsStandardTx(t, reason));
|
BOOST_CHECK(!IsStandardTx(t, reason));
|
||||||
// not dust:
|
// not dust:
|
||||||
t.vout[0].nValue = nDustThreshold;
|
t.vout[0].nValue = nDustThreshold;
|
||||||
BOOST_CHECK(IsStandardTx(t, reason));
|
BOOST_CHECK(IsStandardTx(t, reason));
|
||||||
|
|
Loading…
Reference in a new issue