Skip to content

Commit e7efc2d

Browse files
committed
update _expected_plot_size() for v2 plots
1 parent 2a6f564 commit e7efc2d

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

chia/_tests/core/consensus/test_pot_iterations.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,21 +159,16 @@ def test_calculate_phase_out(self):
159159

160160

161161
def test_expected_plot_size_v1() -> None:
162-
last_size = 4800000
162+
last_size = 4800_000
163163
for k in range(18, 50):
164164
plot_size = _expected_plot_size(PlotSize.make_v1(k))
165165
assert plot_size > last_size
166166
last_size = plot_size
167167

168168

169169
def test_expected_plot_size_v2() -> None:
170-
last_size = 1700000000
170+
last_size = 200_000
171171
for k in range(18, 32, 2):
172172
plot_size = _expected_plot_size(PlotSize.make_v2(k))
173-
# TODO: todo_v2_plots remove this special case once we support smaller k-sizes
174-
if k < 28:
175-
assert plot_size == 0
176-
continue
177-
178173
assert plot_size > last_size
179174
last_size = plot_size

chia/consensus/pos_quality.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@
77
# This is not used in consensus, only for display purposes
88
UI_ACTUAL_SPACE_CONSTANT_FACTOR = 0.78
99

10-
# these values are from CHIP-48
10+
# these values prelimenary. When the plotter is complete, replace this table
11+
# with a closed form formula
1112
v2_plot_sizes: dict[int, uint64] = {
12-
28: uint64(1717986918),
13-
30: uint64(4509715660),
14-
32: uint64(11381663334),
13+
16: uint64(222_863),
14+
18: uint64(1_048_737),
15+
20: uint64(4_824_084),
16+
22: uint64(21_812_958),
17+
24: uint64(97_318_160),
18+
26: uint64(429_539_960),
19+
28: uint64(1_879_213_114),
20+
30: uint64(8_161_097_549),
21+
32: uint64(35_221_370_574),
1522
}
1623

1724

0 commit comments

Comments
 (0)