Skip to content
Snippets Groups Projects
Commit 2602564b authored by Éloïs's avatar Éloïs
Browse files

[fix] BR_G24: if block version < 12, stepMax=7

parent 07afd425
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment