From 924327eaf3ada45a603e80aa4a3ab38a0f8c8673 Mon Sep 17 00:00:00 2001 From: Ryan Ofsky Date: Tue, 23 Aug 2022 22:03:49 -0400 Subject: [PATCH] interfaces: Fix const virtual method that breaks multiprocess support --- src/interfaces/wallet.h | 2 +- src/wallet/interfaces.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h index 4b896c11a3..6114236623 100644 --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -118,7 +118,7 @@ public: wallet::AddressPurpose* purpose) = 0; //! Get wallet address list. - virtual std::vector getAddresses() const = 0; + virtual std::vector getAddresses() = 0; //! Get receive requests. virtual std::vector getAddressReceiveRequests() = 0; diff --git a/src/wallet/interfaces.cpp b/src/wallet/interfaces.cpp index 65285187f4..4caf8a6066 100644 --- a/src/wallet/interfaces.cpp +++ b/src/wallet/interfaces.cpp @@ -212,7 +212,7 @@ public: } return true; } - std::vector getAddresses() const override + std::vector getAddresses() override { LOCK(m_wallet->cs_wallet); std::vector result;