Make reputation take into account more recent segments

This commit is contained in:
Ajay Ramachandran
2021-07-12 11:05:12 -04:00
parent ef86fceedd
commit a23ec160c0
3 changed files with 19 additions and 8 deletions

View File

@@ -114,11 +114,11 @@ describe('reputation', () => {
});
it("user with high reputation", async () => {
assert.strictEqual(await getReputation(getHash(userIDHighRep)), 0.24137931034482757);
assert.strictEqual(await getReputation(getHash(userIDHighRep)), 0.19310344827586207);
});
it("user with high reputation and locked segments", async () => {
assert.strictEqual(await getReputation(getHash(userIDHighRepAndLocked)), 1.8413793103448277);
assert.strictEqual(await getReputation(getHash(userIDHighRepAndLocked)), 1.793103448275862);
});
});