Skip to content

Commit 597a81a

Browse files
committed
f: calc start and end epoch (moved logging to estimate script)
1 parent 59fde94 commit 597a81a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/calc-start-end-epoch.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ function check2024Aug1() {
99
let currentBlockMs = Date.parse(currentBlockTime);
1010

1111
let cycleCount = 2;
12-
let estimates = DashGov.estimateProposalCycles(cycleCount, {
12+
let snapshot = {
1313
ms: currentBlockMs,
1414
block: currentBlockHeight,
15-
});
15+
};
16+
let estimates = DashGov.estimateProposalCycles(cycleCount, snapshot);
1617

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

0 commit comments

Comments
 (0)