From b2c3238501858a41a1d750e55da2d7df702bad84 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Wed, 19 Aug 2020 13:32:12 +0300 Subject: [PATCH] MAX_SUBMITTED_HEADERS = 4 (#293) --- bridges/relays/ethereum/src/substrate_sync_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/relays/ethereum/src/substrate_sync_loop.rs b/bridges/relays/ethereum/src/substrate_sync_loop.rs index 0ed7913327..4f796029a8 100644 --- a/bridges/relays/ethereum/src/substrate_sync_loop.rs +++ b/bridges/relays/ethereum/src/substrate_sync_loop.rs @@ -47,7 +47,7 @@ pub mod consts { /// Max Ethereum headers we want to have in all 'before-submitted' states. pub const MAX_FUTURE_HEADERS_TO_DOWNLOAD: usize = 8; /// Max Ethereum headers count we want to have in 'submitted' state. - pub const MAX_SUBMITTED_HEADERS: usize = 1; + pub const MAX_SUBMITTED_HEADERS: usize = 4; /// Max depth of in-memory headers in all states. Past this depth they will be forgotten (pruned). pub const PRUNE_DEPTH: u32 = 256; }