initialize_retryables

Function initialize_retryables 

Source
pub fn initialize_retryables<D: Database>(
    rs: &RetryableState<D>,
    retryables_data: Vec<InitRetryableData>,
    current_timestamp: u64,
) -> Result<(Vec<(Address, U256)>, Vec<(Address, U256)>), ()>
Expand description

Initialize retryable tickets from genesis data.

Expired retryables (timeout <= current_timestamp) are skipped, and their call value is returned as (beneficiary, callvalue) pairs for the caller to credit balances. Active retryables are sorted by timeout and created.

Returns (balance_credits, escrow_credits) where:

  • balance_credits: expired retryable beneficiaries to credit
  • escrow_credits: (escrow_address, callvalue) for active retryable escrow funding