From 410f9c31b259f71540b49a92d06726f5c3c012d8 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 25 Mar 2024 13:24:07 +0200 Subject: [PATCH] comment about max execution headers to keep --- .../bridge-hub-kusama/src/bridge_to_ethereum_config.rs | 3 +++ .../bridge-hub-polkadot/src/bridge_to_ethereum_config.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/system-parachains/bridge-hubs/bridge-hub-kusama/src/bridge_to_ethereum_config.rs b/system-parachains/bridge-hubs/bridge-hub-kusama/src/bridge_to_ethereum_config.rs index 4e9851f6ac..84d2687572 100644 --- a/system-parachains/bridge-hubs/bridge-hub-kusama/src/bridge_to_ethereum_config.rs +++ b/system-parachains/bridge-hubs/bridge-hub-kusama/src/bridge_to_ethereum_config.rs @@ -139,6 +139,9 @@ parameter_types! { } parameter_types! { + // On Ethereum, a sync committee period spans 8192 slots, approximately 27 hours (or 256 epochs). + // We retain headers for 20 sync committee periods, equating to about 3 weeks. Headers older + // than this period are pruned. pub const MaxExecutionHeadersToKeep: u32 = 8192 * 20; } diff --git a/system-parachains/bridge-hubs/bridge-hub-polkadot/src/bridge_to_ethereum_config.rs b/system-parachains/bridge-hubs/bridge-hub-polkadot/src/bridge_to_ethereum_config.rs index c44c0862de..275dca00c8 100644 --- a/system-parachains/bridge-hubs/bridge-hub-polkadot/src/bridge_to_ethereum_config.rs +++ b/system-parachains/bridge-hubs/bridge-hub-polkadot/src/bridge_to_ethereum_config.rs @@ -139,6 +139,9 @@ parameter_types! { } parameter_types! { + // On Ethereum, a sync committee period spans 8192 slots, approximately 27 hours (or 256 epochs). + // We retain headers for 20 sync committee periods, equating to about 3 weeks. Headers older + // than this period are pruned. pub const MaxExecutionHeadersToKeep: u32 = 8192 * 20; }