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
This commit is contained in:
jwinterm
2026-03-20 21:24:03 -04:00
parent 64f18ab171
commit db85219a97
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -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;
-2
View File
@@ -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; }