From e4dff510b461a7bf3f35332ebac19089efbd5517 Mon Sep 17 00:00:00 2001 From: Jay Graber Date: Wed, 28 Mar 2018 08:28:21 -0700 Subject: [PATCH] Set ban score for expired txs to 0 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ecf62c222..975aed2f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -897,7 +897,7 @@ bool ContextualCheckTransaction(const CTransaction& tx, CValidationState &state, // Check that all transactions are unexpired if (IsExpiredTx(tx, nHeight)) { - return state.DoS(dosLevel, error("ContextualCheckTransaction(): transaction is expired"), REJECT_INVALID, "tx-overwinter-expired"); + return state.DoS(0, error("ContextualCheckTransaction(): transaction is expired"), REJECT_INVALID, "tx-overwinter-expired"); } }