fix verify second

This commit is contained in:
Jordi Baylina 2020-05-31 22:00:47 +02:00
parent 49a210fdff
commit 4020d0b5b9
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112

@ -251,7 +251,7 @@ async function verify(tauFilename, verbose) {
printContribution(curContr, prevContr); printContribution(curContr, prevContr);
for (let i = contrs.length-2; i>=0; i--) { for (let i = contrs.length-2; i>=0; i--) {
const curContr = contrs[i]; const curContr = contrs[i];
const prevContr = (curContr>0) ? contrs[i-1] : initialContribution; const prevContr = (i>0) ? contrs[i-1] : initialContribution;
await verifyContribution(curve, curContr, prevContr); await verifyContribution(curve, curContr, prevContr);
printContribution(curContr, prevContr); printContribution(curContr, prevContr);
} }