Skip to main content

is_near_network_tip

Function is_near_network_tip 

Source
fn is_near_network_tip(
    network: &Network,
    latest_chain_tip: &impl ChainTip,
    now: DateTime<Utc>,
) -> bool
Expand description

Returns true if the best tip is recent enough to start the mempool on network at now.

Test networks accept any tip age, as getblocktemplate does, so miners can restart a network that has stalled for longer than MAX_START_TIP_AGE.