Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 884 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Increment the next transaction order id | * Increment the next transaction order id | ||||
* @return next transaction order id | * @return next transaction order id | ||||
*/ | */ | ||||
int64_t IncOrderPosNext(CWalletDB *pwalletdb = nullptr); | int64_t IncOrderPosNext(CWalletDB *pwalletdb = nullptr); | ||||
DBErrors ReorderTransactions(); | DBErrors ReorderTransactions(); | ||||
bool AccountMove(std::string strFrom, std::string strTo, | bool AccountMove(std::string strFrom, std::string strTo, | ||||
const Amount nAmount, std::string strComment = ""); | const Amount nAmount, std::string strComment = ""); | ||||
bool GetAccountPubkey(CPubKey &pubKey, std::string strAccount, | bool GetLabelAddress(CPubKey &pubKey, const std::string &label, | ||||
bool bForceNew = false); | bool bForceNew = false); | ||||
void MarkDirty(); | void MarkDirty(); | ||||
bool AddToWallet(const CWalletTx &wtxIn, bool fFlushOnClose = true); | bool AddToWallet(const CWalletTx &wtxIn, bool fFlushOnClose = true); | ||||
bool LoadToWallet(const CWalletTx &wtxIn); | bool LoadToWallet(const CWalletTx &wtxIn); | ||||
void TransactionAddedToMempool(const CTransactionRef &tx) override; | void TransactionAddedToMempool(const CTransactionRef &tx) override; | ||||
void | void | ||||
BlockConnected(const std::shared_ptr<const CBlock> &pblock, | BlockConnected(const std::shared_ptr<const CBlock> &pblock, | ||||
const CBlockIndex *pindex, | const CBlockIndex *pindex, | ||||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | const std::map<CKeyID, int64_t> &GetAllReserveKeys() const { | ||||
return m_pool_key_to_index; | return m_pool_key_to_index; | ||||
} | } | ||||
/** Does the wallet have at least min_keys in the keypool? */ | /** Does the wallet have at least min_keys in the keypool? */ | ||||
bool HasUnusedKeys(size_t min_keys) const; | bool HasUnusedKeys(size_t min_keys) const; | ||||
std::set<std::set<CTxDestination>> GetAddressGroupings(); | std::set<std::set<CTxDestination>> GetAddressGroupings(); | ||||
std::map<CTxDestination, Amount> GetAddressBalances(); | std::map<CTxDestination, Amount> GetAddressBalances(); | ||||
std::set<CTxDestination> | std::set<CTxDestination> GetLabelAddresses(const std::string &label) const; | ||||
GetAccountAddresses(const std::string &strAccount) const; | |||||
isminetype IsMine(const CTxIn &txin) const; | isminetype IsMine(const CTxIn &txin) const; | ||||
/** | /** | ||||
* Returns amount of debit if the input matches the filter, otherwise | * Returns amount of debit if the input matches the filter, otherwise | ||||
* returns 0 | * returns 0 | ||||
*/ | */ | ||||
Amount GetDebit(const CTxIn &txin, const isminefilter &filter) const; | Amount GetDebit(const CTxIn &txin, const isminefilter &filter) const; | ||||
isminetype IsMine(const CTxOut &txout) const; | isminetype IsMine(const CTxOut &txout) const; | ||||
Show All 15 Lines | public: | ||||
DBErrors ZapSelectTx(std::vector<TxId> &txIdsIn, | DBErrors ZapSelectTx(std::vector<TxId> &txIdsIn, | ||||
std::vector<TxId> &txIdsOut); | std::vector<TxId> &txIdsOut); | ||||
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); | ||||
const std::string &GetAccountName(const CScript &scriptPubKey) const; | const std::string &GetLabelName(const CScript &scriptPubKey) const; | ||||
void Inventory(const uint256 &hash) override { | void Inventory(const uint256 &hash) override { | ||||
LOCK(cs_wallet); | LOCK(cs_wallet); | ||||
std::map<uint256, int>::iterator mi = mapRequestCount.find(hash); | std::map<uint256, int>::iterator mi = mapRequestCount.find(hash); | ||||
if (mi != mapRequestCount.end()) { | if (mi != mapRequestCount.end()) { | ||||
(*mi).second++; | (*mi).second++; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |