Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | try { | ||||
->mapAddressBook[DecodeDestination( | ->mapAddressBook[DecodeDestination( | ||||
strAddress, pwallet->chainParams)] | strAddress, pwallet->chainParams)] | ||||
.purpose; | .purpose; | ||||
} else if (strType == "tx") { | } else if (strType == "tx") { | ||||
TxId txid; | TxId txid; | ||||
ssKey >> txid; | ssKey >> txid; | ||||
CWalletTx wtx(nullptr /* pwallet */, MakeTransactionRef()); | CWalletTx wtx(nullptr /* pwallet */, MakeTransactionRef()); | ||||
ssValue >> wtx; | ssValue >> wtx; | ||||
CValidationState state; | TxValidationState state; | ||||
bool isValid = wtx.IsCoinBase() | bool isValid = wtx.IsCoinBase() | ||||
? CheckCoinbase(*wtx.tx, state) | ? CheckCoinbase(*wtx.tx, state) | ||||
: CheckRegularTransaction(*wtx.tx, state); | : CheckRegularTransaction(*wtx.tx, state); | ||||
if (!isValid || wtx.GetId() != txid) { | if (!isValid || wtx.GetId() != txid) { | ||||
return false; | return false; | ||||
} | } | ||||
// Undo serialize changes in 31600 | // Undo serialize changes in 31600 | ||||
▲ Show 20 Lines • Show All 580 Lines • Show Last 20 Lines |