Skip to content

Commit

Permalink
f: calc start and end epoch (moved logging to estimate script)
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Aug 5, 2024
1 parent 59fde94 commit 597a81a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/calc-start-end-epoch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ function check2024Aug1() {
let currentBlockMs = Date.parse(currentBlockTime);

let cycleCount = 2;
let estimates = DashGov.estimateProposalCycles(cycleCount, {
let snapshot = {
ms: currentBlockMs,
block: currentBlockHeight,
});
};
let estimates = DashGov.estimateProposalCycles(cycleCount, snapshot);

if (!estimates.last?.voteDeltaMs) {
throw new Error(`missing 'estimates.last'`);
Expand Down

0 comments on commit 597a81a

Please sign in to comment.