mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
wallet: make getters const
This commit is contained in:
parent
227b9dd2d6
commit
df3a818d2a
2 changed files with 7 additions and 7 deletions
|
@ -3201,7 +3201,7 @@ void CWallet::MarkDestinationsDirty(const std::set<CTxDestination>& destinations
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::map<CTxDestination, CAmount> CWallet::GetAddressBalances(interfaces::Chain::Lock& locked_chain)
|
std::map<CTxDestination, CAmount> CWallet::GetAddressBalances(interfaces::Chain::Lock& locked_chain) const
|
||||||
{
|
{
|
||||||
std::map<CTxDestination, CAmount> balances;
|
std::map<CTxDestination, CAmount> balances;
|
||||||
|
|
||||||
|
@ -3242,7 +3242,7 @@ std::map<CTxDestination, CAmount> CWallet::GetAddressBalances(interfaces::Chain:
|
||||||
return balances;
|
return balances;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::set< std::set<CTxDestination> > CWallet::GetAddressGroupings()
|
std::set< std::set<CTxDestination> > CWallet::GetAddressGroupings() const
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet);
|
AssertLockHeld(cs_wallet);
|
||||||
std::set< std::set<CTxDestination> > groupings;
|
std::set< std::set<CTxDestination> > groupings;
|
||||||
|
|
|
@ -832,8 +832,8 @@ public:
|
||||||
* Rescan abort properties
|
* Rescan abort properties
|
||||||
*/
|
*/
|
||||||
void AbortRescan() { fAbortRescan = true; }
|
void AbortRescan() { fAbortRescan = true; }
|
||||||
bool IsAbortingRescan() { return fAbortRescan; }
|
bool IsAbortingRescan() const { return fAbortRescan; }
|
||||||
bool IsScanning() { return fScanningWallet; }
|
bool IsScanning() const { return fScanningWallet; }
|
||||||
int64_t ScanningDuration() const { return fScanningWallet ? GetTimeMillis() - m_scanning_start : 0; }
|
int64_t ScanningDuration() const { return fScanningWallet ? GetTimeMillis() - m_scanning_start : 0; }
|
||||||
double ScanningProgress() const { return fScanningWallet ? (double) m_scanning_progress : 0; }
|
double ScanningProgress() const { return fScanningWallet ? (double) m_scanning_progress : 0; }
|
||||||
|
|
||||||
|
@ -973,8 +973,8 @@ public:
|
||||||
|
|
||||||
int64_t GetOldestKeyPoolTime() const;
|
int64_t GetOldestKeyPoolTime() const;
|
||||||
|
|
||||||
std::set<std::set<CTxDestination>> GetAddressGroupings() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
std::set<std::set<CTxDestination>> GetAddressGroupings() const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
||||||
std::map<CTxDestination, CAmount> GetAddressBalances(interfaces::Chain::Lock& locked_chain);
|
std::map<CTxDestination, CAmount> GetAddressBalances(interfaces::Chain::Lock& locked_chain) const;
|
||||||
|
|
||||||
std::set<CTxDestination> GetLabelAddresses(const std::string& label) const;
|
std::set<CTxDestination> GetLabelAddresses(const std::string& label) const;
|
||||||
|
|
||||||
|
@ -1027,7 +1027,7 @@ public:
|
||||||
bool SetMaxVersion(int nVersion);
|
bool SetMaxVersion(int nVersion);
|
||||||
|
|
||||||
//! get the current wallet format (the oldest client version guaranteed to understand this wallet)
|
//! get the current wallet format (the oldest client version guaranteed to understand this wallet)
|
||||||
int GetVersion() { LOCK(cs_wallet); return nWalletVersion; }
|
int GetVersion() const { LOCK(cs_wallet); return nWalletVersion; }
|
||||||
|
|
||||||
//! Get wallet transactions that conflict with given transaction (spend same outputs)
|
//! Get wallet transactions that conflict with given transaction (spend same outputs)
|
||||||
std::set<uint256> GetConflicts(const uint256& txid) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
std::set<uint256> GetConflicts(const uint256& txid) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
||||||
|
|
Loading…
Add table
Reference in a new issue