Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 552 Lines • ▼ Show 20 Lines | inline void SerializationOp(Stream &s, Operation ser_action) { | ||||
READWRITE(vchPrivKey); | READWRITE(vchPrivKey); | ||||
READWRITE(nTimeCreated); | READWRITE(nTimeCreated); | ||||
READWRITE(nTimeExpires); | READWRITE(nTimeExpires); | ||||
READWRITE(LIMITED_STRING(strComment, 65536)); | READWRITE(LIMITED_STRING(strComment, 65536)); | ||||
} | } | ||||
}; | }; | ||||
/** | /** | ||||
* Internal transfers. | * DEPRECATED Internal transfers. | ||||
* Database key is acentry<account><counter>. | * Database key is acentry<account><counter>. | ||||
*/ | */ | ||||
class CAccountingEntry { | class CAccountingEntry { | ||||
public: | public: | ||||
std::string strAccount; | std::string strAccount; | ||||
Amount nCreditDebit; | Amount nCreditDebit; | ||||
int64_t nTime; | int64_t nTime; | ||||
std::string strOtherAccount; | std::string strOtherAccount; | ||||
▲ Show 20 Lines • Show All 518 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
/** 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> GetLabelAddresses(const std::string &label) const; | std::set<CTxDestination> GetLabelAddresses(const std::string &label) const; | ||||
void DeleteLabel(const std::string &label); | |||||
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 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | public: | ||||
void ReturnKey(); | void ReturnKey(); | ||||
bool GetReservedKey(CPubKey &pubkey, bool internal = false); | bool GetReservedKey(CPubKey &pubkey, bool internal = false); | ||||
void KeepKey(); | void KeepKey(); | ||||
void KeepScript() override { KeepKey(); } | void KeepScript() override { KeepKey(); } | ||||
}; | }; | ||||
/** | /** | ||||
* Account information. | * DEPRECATED Account information. | ||||
* Stored in wallet with key "acc"+string account name. | * Stored in wallet with key "acc"+string account name. | ||||
*/ | */ | ||||
class CAccount { | class CAccount { | ||||
public: | public: | ||||
CPubKey vchPubKey; | CPubKey vchPubKey; | ||||
CAccount() { SetNull(); } | CAccount() { SetNull(); } | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |