From db85219a97a38da80fa639e82cbf3b0a87b5c966 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Wed, 24 Dec 2025 10:49:12 -0500 Subject: [PATCH] Fix Wownero API compatibility - Remove #ifndef LWSF_MASTER_ENABLE guards around lightWalletLogin and lightWalletImportWalletRequest - these are pure virtual in Wownero's wallet2_api.h so must always be implemented --- src/wallet.cpp | 4 ++-- src/wallet.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 7070472..cfb297d 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -2117,7 +2117,7 @@ namespace lwsf { namespace internal return out.str(); } -#ifndef LWSF_MASTER_ENABLE + // NOTE: These functions are always needed for Wownero (they're pure virtual in wallet2_api.h) bool wallet::lightWalletLogin(bool &isNewWallet) const { isNewWallet = false; @@ -2158,5 +2158,5 @@ namespace lwsf { namespace internal return true; } #endif // LWSF_MASTER_ENABLE - + }} // lwsf // internal diff --git a/src/wallet.h b/src/wallet.h index c1f880c..51cabdd 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -747,13 +747,11 @@ namespace internal //! secondary key reuse mitigation virtual void keyReuseMitigation2(bool mitigation) override { /* TODO */ } -#ifndef LWSF_MASTER_ENABLE //! Light wallet authenticate and login virtual bool lightWalletLogin(bool &isNewWallet) const override; //! Initiates a light wallet import wallet request virtual bool lightWalletImportWalletRequest(std::string &payment_id, uint64_t &fee, bool &new_request, bool &request_fulfilled, std::string &payment_address, std::string &status) override; -#endif // LWSF_MASTER_ENABLE //! locks/unlocks the keys file; returns true on success virtual bool lockKeysFile() override { return false; }