remove witnessEnabled standardness logic

This commit is contained in:
Gregory Sanders 2018-03-13 12:20:07 -04:00
parent b8ba4ebee7
commit fa34426ab1
3 changed files with 6 additions and 9 deletions

View file

@ -1075,7 +1075,7 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
// Rather not work on nonstandard transactions (unless -testnet/-regtest)
std::string reason;
if (fRequireStandard && !IsStandardTx(tx, reason, witnessEnabled))
if (fRequireStandard && !IsStandardTx(tx, reason))
return state.DoS(0, false, REJECT_NONSTANDARD, reason);
// Only accept nLockTime-using transactions that can be mined in the next