Skip to content

Commit 57d3c51

Browse files
committed
fix: call estimateSecondsPerBlock for estimate (not measurement)
1 parent a1ccaa7 commit 57d3c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/estimate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function main() {
7575
let blockTime = process.argv[4];
7676
let blockMs = 0;
7777
let secondsPerBlock = 0;
78-
let proposalLeadtime = 0;
78+
// let proposalLeadtime = 0;
7979

8080
if (!cycleCount) {
8181
console.error(`ERROR`);
@@ -102,7 +102,7 @@ function main() {
102102
block: blockHeight,
103103
};
104104
if (!secondsPerBlock) {
105-
secondsPerBlock = DashGov.measureSecondsPerBlock(snapshot);
105+
secondsPerBlock = DashGov.estimateSecondsPerBlock(snapshot);
106106
}
107107
let estimates = DashGov.estimateProposalCycles(
108108
cycleCount,

0 commit comments

Comments
 (0)