pub fn generate_gap_addresses<DbT, SE>(
wallet_db: &mut DbT,
gap_limits: &GapLimits,
account_id: <DbT as AddressStore>::AccountRef,
account_uivk: &UnifiedIncomingViewingKey,
account_ufvk: Option<&UnifiedFullViewingKey>,
key_scope: TransparentKeyScope,
request: UnifiedAddressRequest,
require_key: bool,
) -> Result<(), GapAddressesError<SE>>where
DbT: AddressStore<Error = SE>,Available on crate feature
transparent-inputs and (crate features transparent-inputs or transparent-key-encoding) only.Expand description
Generates transparent addresses to fill the gap for a given account and key scope.
This function queries the wallet backend (via AddressStore) to find the start
of the first gap of unused addresses, then generates enough addresses to maintain the
configured gap limit. If no gap exists (i.e., the address space is exhausted), this is a
no-op.