diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -7,8 +7,6 @@ #include #include -#include -#include #include #include #include @@ -237,11 +235,7 @@ ssKey >> txid; CWalletTx wtx(nullptr /* pwallet */, MakeTransactionRef()); ssValue >> wtx; - TxValidationState state; - bool isValid = wtx.IsCoinBase() - ? CheckCoinbase(*wtx.tx, state) - : CheckRegularTransaction(*wtx.tx, state); - if (!isValid || wtx.GetId() != txid) { + if (wtx.GetId() != txid) { return false; }