Skip to content

Commit 9d15d38

Browse files
committed
fix: separate minimum preview cycle count from calculated cycle count
1 parent 35fc77e commit 9d15d38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/gobject-prepare.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ async function main() {
9595

9696
let totalCycleCount = numPeriods - 1;
9797
let endPeriod = startPeriod + totalCycleCount;
98-
let cycleCount = Math.max(3, endPeriod);
98+
let cycleCount = endPeriod;
99+
let displayCycleCount = Math.max(3, endPeriod);
99100
let snapshot = {
100101
ms: blockMs,
101102
block: blockHeight,
@@ -107,7 +108,7 @@ async function main() {
107108
secondsPerBlock,
108109
);
109110
let estimates = DashGov.estimateProposalCycles(
110-
cycleCount,
111+
displayCycleCount,
111112
snapshot,
112113
secondsPerBlock,
113114
);

0 commit comments

Comments
 (0)