wallet::DescriptorScriptPubKeyMan::GetReservedDestination

GetReservedDestination overloads

Synopses

Declared in <wallet/scriptpubkeyman.h>

Reserves a destination from the descriptor cache and returns it.

virtual
util::Result<CTxDestination>
GetReservedDestination(
    OutputType type,
    bool internal,
    int64_t& index) override;
» more...

Reserves a destination from the keypool and returns it, keeping the reservation index.

virtual
util::Result<CTxDestination>
GetReservedDestination(
    OutputType const type,
    bool internal,
    int64_t& index);
» more...

Return Value

The reserved destination, or an error if none is available.

Parameters

NameDescription
typeThe output type of the destination to reserve.
internalWhether to reserve from the internal (change) chain.
indexSet to the index of the reserved cache entry.