From a5e38a2780023051814ae5200e3ee00ffbbeaadd Mon Sep 17 00:00:00 2001 From: Peter Shugalev Date: Wed, 22 Nov 2023 16:27:59 +0100 Subject: [PATCH] Fix for wallet.dat corruption message on startup --- src/validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation.cpp b/src/validation.cpp index 5344118d5f..f7b5db1653 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -723,7 +723,7 @@ bool CheckTransaction(const CTransaction &tx, CValidationState &state, bool fChe LOCK(cs_main); nTxHeight = chainActive.Height(); } - if (hasExchangeUTXOs && nTxHeight < ::Params().GetConsensus().nExchangeAddressStartBlock) + if (hasExchangeUTXOs && !isCheckWallet && !isVerifyDB && nTxHeight < ::Params().GetConsensus().nExchangeAddressStartBlock) return state.DoS(100, false, REJECT_INVALID, "bad-exchange-address"); if (tx.IsCoinBase())