From e2aeece83b94c39be9c8a14e520f9edc43df2578 Mon Sep 17 00:00:00 2001 From: chalith Date: Thu, 9 May 2024 16:10:29 +0530 Subject: [PATCH] Modified score validation --- reputationd/lib/reputationd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reputationd/lib/reputationd.js b/reputationd/lib/reputationd.js index 74a24f5..039ddfa 100644 --- a/reputationd/lib/reputationd.js +++ b/reputationd/lib/reputationd.js @@ -676,8 +676,8 @@ class ReputationD { } let scores = null; - const createdMoment = this.cfg.contractInstance?.created_moment ?? -1; - if (currentMoment === createdMoment) + const createdMoment = this.cfg.contractInstance?.created_moment ?? -2; + if (currentMoment === (createdMoment + 1)) scores = await this.#getScores(); console.log(`Reporting reputations at Moment ${currentMoment} ${scores ? 'With scores' : 'Without scores'}...`);