From 451987dc44efcf22d0c436577eced1bc6409cadd Mon Sep 17 00:00:00 2001 From: Tomasz Polaczyk Date: Thu, 19 Dec 2024 17:04:19 +0100 Subject: [PATCH] Fix comment --- test/suites/smoke-test-dancelight/test-para-inclusion.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/suites/smoke-test-dancelight/test-para-inclusion.ts b/test/suites/smoke-test-dancelight/test-para-inclusion.ts index f3cdfc1ba..fd9349168 100644 --- a/test/suites/smoke-test-dancelight/test-para-inclusion.ts +++ b/test/suites/smoke-test-dancelight/test-para-inclusion.ts @@ -127,9 +127,10 @@ describeSuite({ const parentBlockNumber = blockNumberMap.get(relayParent); - // allowedAncestryLen = 1 means that parent + 1 == current - // with allowedAncestryLen = 2, parent + allowedAncestryLen >= current - // +1 because some tests fail otherwise: 1151694 vs current 1151697 + // allowedAncestryLen = 0 means that we only allow building on top of the parent block + // allowedAncestryLen = 1 means that we allow 2 different parent blocks, + // so parent + 2 >= current + // In general, parent + allowedAncestryLen + 1 >= current expect( parentBlockNumber + allowedAncestryLen + 1, `Block #${blockNum}: backed candidate for para id ${paraId} has too old relayParent: ${parentBlockNumber} vs current ${blockNum}`