Skip to content

Commit cd68594

Browse files
committed
Only check the hash of transactions loaded from disk
1 parent 59c138d commit cd68594

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/wallet/walletdb.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
#include <wallet/walletdb.h>
77

8-
#include <consensus/tx_check.h>
9-
#include <consensus/validation.h>
108
#include <fs.h>
119
#include <key_io.h>
1210
#include <protocol.h>
@@ -218,8 +216,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
218216
ssKey >> hash;
219217
CWalletTx wtx(nullptr /* pwallet */, MakeTransactionRef());
220218
ssValue >> wtx;
221-
CValidationState state;
222-
if (!(CheckTransaction(*wtx.tx, state) && (wtx.GetHash() == hash) && state.IsValid()))
219+
if (wtx.GetHash() != hash)
223220
return false;
224221

225222
// Undo serialize changes in 31600

0 commit comments

Comments
 (0)