mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-09-29 01:34:14 +02:00
Only check the hash of transactions loaded from disk
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user