@@ -151,7 +151,7 @@ class ScriptPubKeyMan
151151 virtual isminetype IsMine (const CScript& script) const { return ISMINE_NO; }
152152
153153 virtual bool GetReservedDestination (const OutputType type, bool internal, int64_t & index, CKeyPool& keypool) { return false ; }
154- virtual void KeepDestination (int64_t index) {}
154+ virtual void KeepDestination (int64_t index, const OutputType& type, const CPubKey& pubkey ) {}
155155 virtual void ReturnDestination (int64_t index, bool internal, const CPubKey& pubkey) {}
156156
157157 virtual bool TopUp (unsigned int size = 0 ) { return false ; }
@@ -248,7 +248,7 @@ class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProv
248248 std::map<CKeyID, int64_t > m_pool_key_to_index;
249249
250250 // ! Fetches a key from the keypool
251- bool GetKeyFromPool (CPubKey &key, bool internal = false );
251+ bool GetKeyFromPool (CPubKey &key, const OutputType type, bool internal = false );
252252
253253 /* *
254254 * Reserves a key from the keypool and sets nIndex to its index
@@ -274,7 +274,7 @@ class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProv
274274 bool EncryptKeys (CKeyingMaterial& vMasterKeyIn);
275275
276276 bool GetReservedDestination (const OutputType type, bool internal, int64_t & index, CKeyPool& keypool) override ;
277- void KeepDestination (int64_t index) override ;
277+ void KeepDestination (int64_t index, const OutputType& type, const CPubKey& pubkey ) override ;
278278 void ReturnDestination (int64_t index, bool internal, const CPubKey& pubkey) override ;
279279
280280 bool TopUp (unsigned int size = 0 ) override ;
0 commit comments