aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-06-11 11:46:14 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2022-06-22 12:51:30 -0300
commitfa9f2ab8fd53075d2a3ec93ddac4908e73525c46 (patch)
tree17b573fa0510976141536af72b9675d8829eaa0f /src/wallet/wallet.h
parent83e42c4b94e376a19d3eb0a2379769b8b8ac5fc8 (diff)
downloadbitcoin-fa9f2ab8fd53075d2a3ec93ddac4908e73525c46.tar.xz
refactor: RPC 'listlabels', encapsulate 'CWallet::ListAddrBookLabels' functionality
Mainly to not access 'm_address_book' externally.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 3775f325ba..8bc1189bec 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -649,6 +649,11 @@ public:
std::vector<CTxDestination> ListAddrBookAddresses(const std::optional<AddrBookFilter>& filter) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
/**
+ * Retrieve all the known labels in the address book
+ */
+ std::set<std::string> ListAddrBookLabels(const std::string& purpose) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
+
+ /**
* Walk-through the address book entries.
* Stops when the provided 'ListAddrBookFunc' returns false.
*/