@@ -171,7 +171,7 @@ class ScriptPubKeyMan
171171 virtual bool CheckDecryptionKey (const CKeyingMaterial& master_key, bool accept_no_keys = false ) { return false ; }
172172 virtual bool Encrypt (const CKeyingMaterial& master_key, WalletBatch* batch) { return false ; }
173173
174- virtual bool GetReservedDestination (bool internal, CTxDestination& address, int64_t & index, CKeyPool& keypool, bilingual_str& error ) { return false ; }
174+ virtual util::Result<CTxDestination> GetReservedDestination (bool internal, int64_t & index, CKeyPool& keypool) { return util::Error{ Untranslated ( " Not supported " )} ; }
175175 virtual void KeepDestination (int64_t index) {}
176176 virtual void ReturnDestination (int64_t index, bool internal, const CTxDestination& addr) {}
177177
@@ -325,7 +325,7 @@ class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProv
325325 bool CheckDecryptionKey (const CKeyingMaterial& master_key, bool accept_no_keys = false ) override ;
326326 bool Encrypt (const CKeyingMaterial& master_key, WalletBatch* batch) override ;
327327
328- bool GetReservedDestination (bool internal, CTxDestination& address, int64_t & index, CKeyPool& keypool, bilingual_str& error ) override ;
328+ util::Result<CTxDestination> GetReservedDestination (bool internal, int64_t & index, CKeyPool& keypool) override ;
329329 void KeepDestination (int64_t index) override ;
330330 void ReturnDestination (int64_t index, bool internal, const CTxDestination&) override ;
331331
@@ -561,7 +561,7 @@ class DescriptorScriptPubKeyMan : public ScriptPubKeyMan
561561 bool CheckDecryptionKey (const CKeyingMaterial& master_key, bool accept_no_keys = false ) override ;
562562 bool Encrypt (const CKeyingMaterial& master_key, WalletBatch* batch) override ;
563563
564- bool GetReservedDestination (bool internal, CTxDestination& address, int64_t & index, CKeyPool& keypool, bilingual_str& error ) override ;
564+ util::Result<CTxDestination> GetReservedDestination (bool internal, int64_t & index, CKeyPool& keypool) override ;
565565 void ReturnDestination (int64_t index, bool internal, const CTxDestination& addr) override ;
566566
567567 // Tops up the descriptor cache and m_map_script_pub_keys. The cache is stored in the wallet file
0 commit comments