Skip to content

Commit

Permalink
add SCRIPT_VERIFY_LOW_S verification after the fork
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Jul 30, 2019
1 parent b495b27 commit 8a3f573
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/validation.cpp
Expand Up @@ -699,6 +699,11 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
scriptVerifyFlags = gArgs.GetArg("-promiscuousmempoolflags", scriptVerifyFlags);
}

// peercoin: if transaction is after version 0.8 fork, verify SCRIPT_VERIFY_LOW_S
// ppcTODO move back to policy.h after 0.8 is active
if (IsBTC16BIPsEnabled(tx.nTime))
scriptVerifyFlags &= SCRIPT_VERIFY_LOW_S;

// Check against previous transactions
// This is done last to help prevent CPU exhaustion denial-of-service attacks.
PrecomputedTransactionData txdata(tx);
Expand Down

0 comments on commit 8a3f573

Please sign in to comment.