Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 586 Lines • ▼ Show 20 Lines | public: | ||||
void setUnconfirmed() { m_confirm.status = CWalletTx::UNCONFIRMED; } | void setUnconfirmed() { m_confirm.status = CWalletTx::UNCONFIRMED; } | ||||
bool isConfirmed() const { | bool isConfirmed() const { | ||||
return m_confirm.status == CWalletTx::CONFIRMED; | return m_confirm.status == CWalletTx::CONFIRMED; | ||||
} | } | ||||
void setConfirmed() { m_confirm.status = CWalletTx::CONFIRMED; } | void setConfirmed() { m_confirm.status = CWalletTx::CONFIRMED; } | ||||
TxId GetId() const { return tx->GetId(); } | TxId GetId() const { return tx->GetId(); } | ||||
bool IsCoinBase() const { return tx->IsCoinBase(); } | bool IsCoinBase() const { return tx->IsCoinBase(); } | ||||
bool IsImmatureCoinBase() const; | bool IsImmatureCoinBase() const; | ||||
// Disable copying of CWalletTx objects to prevent bugs where instances get | |||||
// copied in and out of the mapWallet map, and fields are updated in the | |||||
// wrong copy. | |||||
CWalletTx(CWalletTx const &) = delete; | |||||
void operator=(CWalletTx const &x) = delete; | |||||
}; | }; | ||||
class COutput { | class COutput { | ||||
public: | public: | ||||
const CWalletTx *tx; | const CWalletTx *tx; | ||||
int i; | int i; | ||||
int nDepth; | int nDepth; | ||||
▲ Show 20 Lines • Show All 663 Lines • ▼ Show 20 Lines | public: | ||||
Amount GetDebit(const CTransaction &tx, const isminefilter &filter) const; | Amount GetDebit(const CTransaction &tx, const isminefilter &filter) const; | ||||
/** Returns whether all of the inputs match the filter */ | /** Returns whether all of the inputs match the filter */ | ||||
bool IsAllFromMe(const CTransaction &tx, const isminefilter &filter) const; | bool IsAllFromMe(const CTransaction &tx, const isminefilter &filter) const; | ||||
Amount GetCredit(const CTransaction &tx, const isminefilter &filter) const; | Amount GetCredit(const CTransaction &tx, const isminefilter &filter) const; | ||||
Amount GetChange(const CTransaction &tx) const; | Amount GetChange(const CTransaction &tx) const; | ||||
void chainStateFlushed(const CBlockLocator &loc) override; | void chainStateFlushed(const CBlockLocator &loc) override; | ||||
DBErrors LoadWallet(bool &fFirstRunRet); | DBErrors LoadWallet(bool &fFirstRunRet); | ||||
DBErrors ZapWalletTx(std::vector<CWalletTx> &vWtx); | DBErrors ZapWalletTx(std::list<CWalletTx> &vWtx); | ||||
DBErrors ZapSelectTx(std::vector<TxId> &txIdsIn, | DBErrors ZapSelectTx(std::vector<TxId> &txIdsIn, | ||||
std::vector<TxId> &txIdsOut) | std::vector<TxId> &txIdsOut) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
bool SetAddressBook(const CTxDestination &address, | bool SetAddressBook(const CTxDestination &address, | ||||
const std::string &strName, const std::string &purpose); | const std::string &strName, const std::string &purpose); | ||||
bool DelAddressBook(const CTxDestination &address); | bool DelAddressBook(const CTxDestination &address); | ||||
▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines |