mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
Implement GetReservedDestination in DescriptorScriptPubKeyMan
This commit is contained in:
@ -1608,7 +1608,11 @@ bool DescriptorScriptPubKeyMan::Encrypt(const CKeyingMaterial& master_key, Walle
|
|||||||
|
|
||||||
bool DescriptorScriptPubKeyMan::GetReservedDestination(const OutputType type, bool internal, CTxDestination& address, int64_t& index, CKeyPool& keypool)
|
bool DescriptorScriptPubKeyMan::GetReservedDestination(const OutputType type, bool internal, CTxDestination& address, int64_t& index, CKeyPool& keypool)
|
||||||
{
|
{
|
||||||
return false;
|
LOCK(cs_desc_man);
|
||||||
|
std::string error;
|
||||||
|
bool result = GetNewDestination(type, address, error);
|
||||||
|
index = m_wallet_descriptor.next_index - 1;
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DescriptorScriptPubKeyMan::ReturnDestination(int64_t index, bool internal, const CTxDestination& addr)
|
void DescriptorScriptPubKeyMan::ReturnDestination(int64_t index, bool internal, const CTxDestination& addr)
|
||||||
|
Reference in New Issue
Block a user