diff options
| author | Pieter Wuille <[email protected]> | 2013-01-27 00:14:11 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-01-30 03:56:44 +0100 |
| commit | ef3988ca369900206b0cfc32cc1958aee0e43710 (patch) | |
| tree | 9cd1ecf802bd159238ece0954200b98a45d01bf3 /src/walletdb.cpp | |
| parent | Merge pull request #2231 from sipa/cleanups (diff) | |
| download | discoin-ef3988ca369900206b0cfc32cc1958aee0e43710.tar.xz discoin-ef3988ca369900206b0cfc32cc1958aee0e43710.zip | |
CValidationState framework
Diffstat (limited to 'src/walletdb.cpp')
| -rw-r--r-- | src/walletdb.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/walletdb.cpp b/src/walletdb.cpp index 2282bed18..fe9bce21e 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -203,7 +203,8 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, ssKey >> hash; CWalletTx& wtx = pwallet->mapWallet[hash]; ssValue >> wtx; - if (wtx.CheckTransaction() && (wtx.GetHash() == hash)) + CValidationState state; + if (wtx.CheckTransaction(state) && (wtx.GetHash() == hash) && state.IsValid()) wtx.BindWallet(pwallet); else { |