Skip to content

Commit

Permalink
Revert "Revert "picked too many cherries""
Browse files Browse the repository at this point in the history
This reverts commit 0f2e08b.
  • Loading branch information
justinvforvendetta committed Jan 19, 2018
1 parent 0f2e08b commit 794660a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,14 +567,8 @@ bool CTransaction::CheckTransaction() const
const CTxOut& txout = vout[i];
if (txout.IsEmpty() && !IsCoinBase() && !IsCoinStake())
return DoS(100, error("CTransaction::CheckTransaction() : txout empty for user transaction"));

if (nBestHeight < STEALTH_TX_SWITCH_BLOCK && !txout.IsEmpty() && txout.nValue < MIN_TXOUT_AMOUNT)
{
printf("minamount: %s nValue: %s", FormatMoney(MIN_TXOUT_AMOUNT).c_str(), FormatMoney(txout.nValue).c_str());
return DoS(100, error("CTransaction::CheckTransaction() : rejecting, stealth tx disabled until block 1824150"));
}
else if (txout.nValue < 0)
{

if (txout.nValue < 0) {
printf("minamount: %s nValue: %s", FormatMoney(MIN_TXOUT_AMOUNT).c_str(), FormatMoney(txout.nValue).c_str());
return DoS(100, error("CTransaction::CheckTransaction() : txout.nValue below minimum"));
}
Expand Down

2 comments on commit 794660a

@justinvforvendetta
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to bed lol

@quangnd
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert a revert a revert 🗡 🗡 🗡 😈

Please sign in to comment.