Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show All 22 Lines | |||||
#include <cstdint> | #include <cstdint> | ||||
#include <map> | #include <map> | ||||
#include <set> | #include <set> | ||||
#include <stdexcept> | #include <stdexcept> | ||||
#include <string> | #include <string> | ||||
#include <utility> | #include <utility> | ||||
#include <vector> | #include <vector> | ||||
#include <boost/shared_ptr.hpp> | |||||
#include <boost/thread.hpp> | #include <boost/thread.hpp> | ||||
extern CWallet *pwalletMain; | extern CWallet *pwalletMain; | ||||
/** | /** | ||||
* Settings | * Settings | ||||
*/ | */ | ||||
extern CFeeRate payTxFee; | extern CFeeRate payTxFee; | ||||
▲ Show 20 Lines • Show All 895 Lines • ▼ Show 20 Lines | public: | ||||
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++; | ||||
} | } | ||||
} | } | ||||
void GetScriptForMining(boost::shared_ptr<CReserveScript> &script) override; | void GetScriptForMining(std::shared_ptr<CReserveScript> &script) override; | ||||
void ResetRequestCount(const uint256 &hash) override { | void ResetRequestCount(const uint256 &hash) override { | ||||
LOCK(cs_wallet); | LOCK(cs_wallet); | ||||
mapRequestCount[hash] = 0; | mapRequestCount[hash] = 0; | ||||
}; | }; | ||||
unsigned int GetKeyPoolSize() { | unsigned int GetKeyPoolSize() { | ||||
// setKeyPool | // setKeyPool | ||||
AssertLockHeld(cs_wallet); | AssertLockHeld(cs_wallet); | ||||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |