Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 463 Lines • ▼ Show 20 Lines | public: | ||||
// 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; | ||||
bool IsTrusted() const; | bool IsTrusted() const; | ||||
int64_t GetTxTime() const; | int64_t GetTxTime() const; | ||||
int GetRequestCount() const; | |||||
// RelayWalletTransaction may only be called if fBroadcastTransactions! | // RelayWalletTransaction may only be called if fBroadcastTransactions! | ||||
bool RelayWalletTransaction(CConnman *connman); | bool RelayWalletTransaction(CConnman *connman); | ||||
/** | /** | ||||
* Pass this transaction to the mempool. Fails if absolute fee exceeds | * Pass this transaction to the mempool. Fails if absolute fee exceeds | ||||
* absurd fee. | * absurd fee. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 352 Lines • ▼ Show 20 Lines | public: | ||||
std::list<CAccountingEntry> laccentries; | std::list<CAccountingEntry> laccentries; | ||||
typedef std::pair<CWalletTx *, CAccountingEntry *> TxPair; | typedef std::pair<CWalletTx *, CAccountingEntry *> TxPair; | ||||
typedef std::multimap<int64_t, TxPair> TxItems; | typedef std::multimap<int64_t, TxPair> TxItems; | ||||
TxItems wtxOrdered; | TxItems wtxOrdered; | ||||
int64_t nOrderPosNext; | int64_t nOrderPosNext; | ||||
uint64_t nAccountingEntryNumber; | uint64_t nAccountingEntryNumber; | ||||
std::map<uint256, int> mapRequestCount; | |||||
std::map<CTxDestination, CAddressBookData> mapAddressBook; | std::map<CTxDestination, CAddressBookData> mapAddressBook; | ||||
std::set<COutPoint> setLockedCoins; | std::set<COutPoint> setLockedCoins; | ||||
const CWalletTx *GetWalletTx(const TxId &txid) const; | const CWalletTx *GetWalletTx(const TxId &txid) const; | ||||
//! check whether we are allowed to upgrade (or already support) to the | //! check whether we are allowed to upgrade (or already support) to the | ||||
▲ Show 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | public: | ||||
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 &GetLabelName(const CScript &scriptPubKey) const; | const std::string &GetLabelName(const CScript &scriptPubKey) const; | ||||
void Inventory(const uint256 &hash) override { | |||||
LOCK(cs_wallet); | |||||
std::map<uint256, int>::iterator mi = mapRequestCount.find(hash); | |||||
if (mi != mapRequestCount.end()) { | |||||
(*mi).second++; | |||||
} | |||||
} | |||||
void GetScriptForMining(std::shared_ptr<CReserveScript> &script); | void GetScriptForMining(std::shared_ptr<CReserveScript> &script); | ||||
unsigned int GetKeyPoolSize() { | unsigned int GetKeyPoolSize() { | ||||
// set{Ex,In}ternalKeyPool | // set{Ex,In}ternalKeyPool | ||||
AssertLockHeld(cs_wallet); | AssertLockHeld(cs_wallet); | ||||
return setInternalKeyPool.size() + setExternalKeyPool.size(); | return setInternalKeyPool.size() + setExternalKeyPool.size(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 244 Lines • Show Last 20 Lines |