|
|
|
@ -455,7 +455,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
@@ -455,7 +455,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
|
|
|
|
|
|
|
|
|
|
// Reject transactions with witness before segregated witness activates (override with -prematurewitness)
|
|
|
|
|
bool witnessEnabled = IsWitnessEnabled(chainActive.Tip(), chainparams.GetConsensus()); |
|
|
|
|
if (!GetBoolArg("-prematurewitness",false) && tx.HasWitness() && !witnessEnabled) { |
|
|
|
|
if (!GetBoolArg("-prematurewitness", false) && tx.HasWitness() && !witnessEnabled) { |
|
|
|
|
return state.DoS(0, false, REJECT_NONSTANDARD, "no-witness-yet", true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|