aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-09-18 15:56:01 -0400
committerAndrew Chow <achow101-github@achow101.com>2019-09-20 10:14:03 -0400
commitcd68594dcdadc195bd2ea9394fa04edfdbdf1149 (patch)
tree014b40f92954e5e823e314bb9163ec4004ff5f95 /src/wallet/walletdb.cpp
parent59c138d2f1497275725eb2b2c8749472f3e7a5ef (diff)
downloadbitcoin-cd68594dcdadc195bd2ea9394fa04edfdbdf1149.tar.xz
Only check the hash of transactions loaded from disk
Diffstat (limited to 'src/wallet/walletdb.cpp')
-rw-r--r--src/wallet/walletdb.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp
index 635997afc9..59101a1dd8 100644
--- a/src/wallet/walletdb.cpp
+++ b/src/wallet/walletdb.cpp
@@ -5,8 +5,6 @@
#include <wallet/walletdb.h>
-#include <consensus/tx_check.h>
-#include <consensus/validation.h>
#include <fs.h>
#include <key_io.h>
#include <protocol.h>
@@ -218,8 +216,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
ssKey >> hash;
CWalletTx wtx(nullptr /* pwallet */, MakeTransactionRef());
ssValue >> wtx;
- CValidationState state;
- if (!(CheckTransaction(*wtx.tx, state) && (wtx.GetHash() == hash) && state.IsValid()))
+ if (wtx.GetHash() != hash)
return false;
// Undo serialize changes in 31600