Function get_max_total_status_failures

Source
pub fn get_max_total_status_failures(network_type: NetworkType) -> u32
Expand description

Returns the maximum total status check failures allowed for a given network type.

This is a safety net for flaky RPC connections that occasionally succeed (resetting the consecutive counter) but continue to fail overall.

§Arguments

  • network_type - The blockchain network type

§Returns

The maximum number of total failures before force-finalization.