approval-voting: query finalized block on startup and increase look back (#4705)

* approval-voting: add more logs

* approval-voting: query finalized block on startup and increase look back
This commit is contained in:
Andronik authored and GitHub committed 2022-01-13 08:15:39 +00:00
1 parent f2bdd99532
commit d4ff5699f0
4 files changed
+164 -7

No files matched your search

@@ -53,6 +53,8 @@ use std::sync::Arc;
/// or disputes.
///
/// This is a safety net that should be removed at some point in the future.
// Until it's not, make sure to also update `MAX_HEADS_LOOK_BACK` in `approval-voting`
// when changing its value.
const MAX_FINALITY_LAG: polkadot_primitives::v1::BlockNumber = 500;
const LOG_TARGET: &str = "parachain::chain-selection";