Skip to content

Commit

Permalink
Fix for wallet.dat corruption message on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Nov 22, 2023
1 parent 6e9b1cc commit a5e38a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit a5e38a2

Please sign in to comment.