mirror of
https://codeberg.org/wownero/lwsf-wow.git
synced 2026-10-17 05:41:30 +02:00
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:
+2
-2
@@ -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
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user