Implement a hard fork for extended/infinite claim expiration times #112
2 changed files with 3 additions and 4 deletions
|
@ -177,8 +177,7 @@ public:
|
|||
|
||||
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)
|
||||
|
|
|
@ -340,8 +340,8 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
|
|||
CAmount nDustThreshold = 182 * minRelayTxFee.GetFeePerK()/1000 * 3;
|
||||
BOOST_CHECK_EQUAL(nDustThreshold, 546);
|
||||
// dust:
|
||||
//t.vout[0].nValue = nDustThreshold - 1;
|
||||
//BOOST_CHECK(!IsStandardTx(t, reason));
|
||||
t.vout[0].nValue = nDustThreshold - 1;
|
||||
BOOST_CHECK(!IsStandardTx(t, reason));
|
||||
// not dust:
|
||||
t.vout[0].nValue = nDustThreshold;
|
||||
BOOST_CHECK(IsStandardTx(t, reason));
|
||||
|
|
Loading…
Reference in a new issue