PendingCreateRequestExpireTime

Trait PendingCreateRequestExpireTime 

Source
pub trait PendingCreateRequestExpireTime: BlockInfoRepository {
    // Required methods
    fn get_pending_create_request_expire_time(&self) -> Milliseconds;
    fn calc_expire_time_for_new_create_request(&self) -> Milliseconds;
}
Expand description

Provides access to configurable expiration time for pending create requests

Required Methods§

Source

fn get_pending_create_request_expire_time(&self) -> Milliseconds

Returns the number of milliseconds pending create requests are valid for

Source

fn calc_expire_time_for_new_create_request(&self) -> Milliseconds

Calculates the time a new create request should expire at (internally looking up the current block timestamp). Returns millis since epoch.

Implementors§