Skip to content

Commit

Permalink
Change timeOfRound comment to doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Aug 10, 2023
1 parent eb2f0a7 commit 99917d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ export const drandUrls = [
const DRAND_GENESIS = 1677685200;
const DRAND_ROUND_LENGTH = 3;

// Time of round in milliseconds.
//
// See TimeOfRound implementation: https://github.com/drand/drand/blob/eb36ba81e3f28c966f95bcd602f60e7ff8ef4c35/chain/time.go#L30-L33
/**
* Time of round in milliseconds.
*
* See TimeOfRound implementation: https://github.com/drand/drand/blob/eb36ba81e3f28c966f95bcd602f60e7ff8ef4c35/chain/time.go#L30-L33
*/
export function timeOfRound(round: number): number {
return (DRAND_GENESIS + (round - 1) * DRAND_ROUND_LENGTH) * 1000;
}
Expand Down

0 comments on commit 99917d9

Please sign in to comment.