replacing the deprecated state.DoS call with state.Invalid

This commit is contained in:
NotRin7
2025-11-22 17:16:34 +01:00
parent 5b37dcc469
commit 5eb70c65d2

View File

@@ -567,7 +567,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
if (ChainActive().Height() < 350000) { if (ChainActive().Height() < 350000) {
for (const CTxOut& txout : tx.vout) { for (const CTxOut& txout : tx.vout) {
if (txout.scriptPubKey.IsUnspendable() && txout.scriptPubKey.size() > 83) { if (txout.scriptPubKey.IsUnspendable() && txout.scriptPubKey.size() > 83) {
return state.DoS(0, false, TxValidationResult::TX_NOT_STANDARD, "bad-txns-oversize-opreturn-prefork"); return state.Invalid(TxValidationResult::TX_NOT_STANDARD, "bad-txns-oversize-opreturn-prefork");
} }
} }
} }