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
2022-01-13 09:15:39 +01:00
committed by GitHub
parent f2bdd99532
commit d4ff5699f0
4 changed files with 164 additions and 7 deletions
@@ -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";