Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | try { | ||||
.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; | CValidationState state; | ||||
bool isValid = wtx.IsCoinBase() | bool isValid = wtx.IsCoinBase() | ||||
? CheckCoinbase(wtx, state) | ? CheckCoinbase(*wtx.tx, state) | ||||
: CheckRegularTransaction(wtx, 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 | ||||
if (31404 <= wtx.fTimeReceivedIsTxTime && | if (31404 <= wtx.fTimeReceivedIsTxTime && | ||||
wtx.fTimeReceivedIsTxTime <= 31703) { | wtx.fTimeReceivedIsTxTime <= 31703) { | ||||
if (!ssValue.empty()) { | if (!ssValue.empty()) { | ||||
▲ Show 20 Lines • Show All 576 Lines • Show Last 20 Lines |