Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
update total number of validators
Browse files Browse the repository at this point in the history
  • Loading branch information
kwunyeung committed May 9, 2019
1 parent 5cbb128 commit 637d546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imports/api/blocks/server/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ Meteor.methods({
console.log("This block used: "+((endBlockTime-startBlockTime)/1000)+"seconds.");
}
SYNCING = false;
Chain.update({chainId:Meteor.settings.public.chainId}, {$set:{lastBlocksSyncedTime:new Date()}});
Chain.update({chainId:Meteor.settings.public.chainId}, {$set:{lastBlocksSyncedTime:new Date(), totalValidators:validatorSet.length}});
}

return until;
Expand Down

0 comments on commit 637d546

Please sign in to comment.