diff --git a/app/lib/indexer.ts b/app/lib/indexer.ts index c691672f4c65e06431fbe83894f2d28104eb0f9e..dcb29c546f337f81572dff79192a1404bb31d133 100644 --- a/app/lib/indexer.ts +++ b/app/lib/indexer.ts @@ -2498,13 +2498,16 @@ async function checkPeopleAreNotOudistanced( for (const pubkey of pubkeys) { let nodeID = await getNodeIDfromPubkey(nodesCache, pubkey, dal); const dSen = Math.ceil(Math.pow(membersCount, 1 / conf.stepMax)); - let isOutdistanced = wotb.isOutdistanced( + let detailedDistance = wotb.detailedDistance( nodeID, dSen, conf.stepMax, conf.xpercent ); - if (isOutdistanced) { + const logger = require("./logger").NewLogger("indexer"); + logger.info(`Detailed distance for ${pubkey}`); + logger.info(detailedDistance); + if (detailedDistance.isOutdistanced) { error = Error("Joiner/Active is outdistanced from WoT"); break; }