reth::network::transactions::constants::tx_fetcher

Constant DEFAULT_MAX_RETRIES

pub const DEFAULT_MAX_RETRIES: u8 = 2; // 2u8
Expand description

Default maximum request retires per TxHash. Note, this is reset should the TxHash re-appear in an announcement after it has been evicted from the hashes pending fetch cache, i.e. the counter is restarted. If this happens, it is likely a very popular transaction, that should and can indeed be fetched hence this behaviour is favourable.

Default is 2 retries.