diff --git a/app/lib/indexer.ts b/app/lib/indexer.ts index df184e6b782eaebc1dbab0a00f48bb21f41e9191..c75e894da45b33a3265ad91bcc897b6d2fd81fdd 100644 --- a/app/lib/indexer.ts +++ b/app/lib/indexer.ts @@ -933,10 +933,12 @@ yarn // BR_G24 // Global testing, because of wotb - const oneIsOutdistanced = await checkPeopleAreNotOudistanced( - Underscore.filter(mindex, (entry: MindexEntry) => !entry.revoked_on).map( - (entry: MindexEntry) => entry.pub - ), + let stepMax = conf.stepMax; + if (HEAD.version < 12) { + conf.stepMax = 7; + } + const oneIsOutdistanced = await checkPeopleAreNotOudistanced( + Underscore.filter(mindex, (entry: MindexEntry) => !entry.revoked_on).map((entry: MindexEntry) => entry.pub), cindex.reduce((newLinks, c: CindexEntry) => { newLinks[c.receiver] = newLinks[c.receiver] || []; newLinks[c.receiver].push(c.issuer); @@ -956,6 +958,9 @@ yarn ENTRY.distanceOK = true; } }); + if (HEAD.version < 12) { + conf.stepMax = stepMax; + } // BR_G25 await Promise.all(