Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 522 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
bool CWallet::HasWalletSpend(const TxId &txid) const { | bool CWallet::HasWalletSpend(const TxId &txid) const { | ||||
AssertLockHeld(cs_wallet); | AssertLockHeld(cs_wallet); | ||||
auto iter = mapTxSpends.lower_bound(COutPoint(txid, 0)); | auto iter = mapTxSpends.lower_bound(COutPoint(txid, 0)); | ||||
return (iter != mapTxSpends.end() && iter->first.GetTxId() == txid); | return (iter != mapTxSpends.end() && iter->first.GetTxId() == txid); | ||||
} | } | ||||
void CWallet::Flush(bool shutdown) { | void CWallet::Flush() { | ||||
database->Flush(shutdown); | database->Flush(); | ||||
} | |||||
void CWallet::Close() { | |||||
database->Close(); | |||||
} | } | ||||
void CWallet::SyncMetaData( | void CWallet::SyncMetaData( | ||||
std::pair<TxSpends::iterator, TxSpends::iterator> range) { | std::pair<TxSpends::iterator, TxSpends::iterator> range) { | ||||
// We want all the wallet transactions in range to have the same metadata as | // We want all the wallet transactions in range to have the same metadata as | ||||
// the oldest (smallest nOrderPos). | // the oldest (smallest nOrderPos). | ||||
// So: find smallest nOrderPos: | // So: find smallest nOrderPos: | ||||
▲ Show 20 Lines • Show All 4,576 Lines • Show Last 20 Lines |