Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
| Show First 20 Lines • Show All 430 Lines • ▼ Show 20 Lines | public: | ||||
| Amount GetAvailableWatchOnlyCredit(const bool &fUseCache = true) const; | Amount GetAvailableWatchOnlyCredit(const bool &fUseCache = true) const; | ||||
| Amount GetChange() const; | Amount GetChange() const; | ||||
| void GetAmounts(std::list<COutputEntry> &listReceived, | void GetAmounts(std::list<COutputEntry> &listReceived, | ||||
| std::list<COutputEntry> &listSent, Amount &nFee, | std::list<COutputEntry> &listSent, Amount &nFee, | ||||
| std::string &strSentAccount, | std::string &strSentAccount, | ||||
| const isminefilter &filter) const; | const isminefilter &filter) const; | ||||
| void GetAccountAmounts(const std::string &strAccount, Amount &nReceived, | |||||
| Amount &nSent, Amount &nFee, | |||||
| const isminefilter &filter) const; | |||||
| bool IsFromMe(const isminefilter &filter) const { | bool IsFromMe(const isminefilter &filter) const { | ||||
| return (GetDebit(filter) > Amount(0)); | return (GetDebit(filter) > Amount(0)); | ||||
| } | } | ||||
| // True if only scriptSigs are different | // True if only scriptSigs are different | ||||
| bool IsEquivalentTo(const CWalletTx &tx) const; | bool IsEquivalentTo(const CWalletTx &tx) const; | ||||
| bool InMempool() const; | bool InMempool() const; | ||||
| ▲ Show 20 Lines • Show All 443 Lines • ▼ Show 20 Lines | public: | ||||
| std::vector<uint256> ResendWalletTransactionsBefore(int64_t nTime, | std::vector<uint256> ResendWalletTransactionsBefore(int64_t nTime, | ||||
| CConnman *connman); | CConnman *connman); | ||||
| Amount GetBalance() const; | Amount GetBalance() const; | ||||
| Amount GetUnconfirmedBalance() const; | Amount GetUnconfirmedBalance() const; | ||||
| Amount GetImmatureBalance() const; | Amount GetImmatureBalance() const; | ||||
| Amount GetWatchOnlyBalance() const; | Amount GetWatchOnlyBalance() const; | ||||
| Amount GetUnconfirmedWatchOnlyBalance() const; | Amount GetUnconfirmedWatchOnlyBalance() const; | ||||
| Amount GetImmatureWatchOnlyBalance() const; | Amount GetImmatureWatchOnlyBalance() const; | ||||
| Amount GetLegacyBalance(const isminefilter &filter, int minDepth, | |||||
| const std::string *account) const; | |||||
| /** | /** | ||||
| * Insert additional inputs into the transaction by calling | * Insert additional inputs into the transaction by calling | ||||
| * CreateTransaction(); | * CreateTransaction(); | ||||
| */ | */ | ||||
| bool FundTransaction(CMutableTransaction &tx, Amount &nFeeRet, | bool FundTransaction(CMutableTransaction &tx, Amount &nFeeRet, | ||||
| bool overrideEstimatedFeeRate, | bool overrideEstimatedFeeRate, | ||||
| const CFeeRate &specificFeeRate, int &nChangePosInOut, | const CFeeRate &specificFeeRate, int &nChangePosInOut, | ||||
| ▲ Show 20 Lines • Show All 64 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(int min_keys) const; | bool HasUnusedKeys(int 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(); | ||||
| Amount GetAccountBalance(const std::string &strAccount, int nMinDepth, | |||||
| const isminefilter &filter); | |||||
| Amount GetAccountBalance(CWalletDB &walletdb, const std::string &strAccount, | |||||
| int nMinDepth, const isminefilter &filter); | |||||
| std::set<CTxDestination> | std::set<CTxDestination> | ||||
| GetAccountAddresses(const std::string &strAccount) 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 | ||||
| */ | */ | ||||
| Show All 17 Lines | public: | ||||
| DBErrors ZapSelectTx(std::vector<uint256> &vHashIn, | DBErrors ZapSelectTx(std::vector<uint256> &vHashIn, | ||||
| std::vector<uint256> &vHashOut); | std::vector<uint256> &vHashOut); | ||||
| 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; | |||||
| 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 195 Lines • Show Last 20 Lines | |||||