Skip to content

Commit 4e5bff9

Browse files
authored
Update network constants for 3.0 testing (#320)
* Update network constants for 3.0 * Update go chia libs
1 parent d363bab commit 4e5bff9

File tree

5 files changed

+122
-7
lines changed

5 files changed

+122
-7
lines changed

api/v1/chianetwork_types.go

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,26 @@ type NetworkConstants struct {
7171
MinPlotSizeV1 *uint8 `json:"MIN_PLOT_SIZE_V1,omitempty"`
7272

7373
// +optional
74-
MinPlotSizeV2 *uint8 `json:"MIN_PLOT_SIZE_V2,omitempty"`
74+
PlotSizeV2 *uint8 `json:"PLOT_SIZE_V2,omitempty"`
7575

7676
// +optional
7777
NetworkType *uint8 `json:"NETWORK_TYPE,omitempty"`
7878

7979
// +optional
8080
SubSlotItersStarting *uint64 `json:"SUB_SLOT_ITERS_STARTING,omitempty"`
8181

82+
// +optional
83+
NumberZeroBitsPlotFilterV1 *uint8 `json:"NUMBER_ZERO_BITS_PLOT_FILTER_V1,omitempty"`
84+
85+
// +optional
86+
NumberZeroBitsPlotFilterV2 *uint8 `json:"NUMBER_ZERO_BITS_PLOT_FILTER_V2,omitempty"`
87+
8288
// +optional
8389
HardForkHeight *uint32 `json:"HARD_FORK_HEIGHT,omitempty"`
8490

91+
// +optional
92+
HardFork2Height *uint32 `json:"HARD_FORK2_HEIGHT,omitempty"`
93+
8594
// +optional
8695
SoftFork4Height *uint32 `json:"SOFT_FORK4_HEIGHT,omitempty"`
8796

@@ -91,6 +100,9 @@ type NetworkConstants struct {
91100
// +optional
92101
SoftFork6Height *uint32 `json:"SOFT_FORK6_HEIGHT,omitempty"`
93102

103+
// +optional
104+
SoftFork8Height *uint32 `json:"SOFT_FORK8_HEIGHT,omitempty"`
105+
94106
// +optional
95107
PlotFilter128Height *uint32 `json:"PLOT_FILTER_128_HEIGHT,omitempty"`
96108

@@ -99,6 +111,27 @@ type NetworkConstants struct {
99111

100112
// +optional
101113
PlotFilter32Height *uint32 `json:"PLOT_FILTER_32_HEIGHT,omitempty"`
114+
115+
// +optional
116+
PlotV1PhaseOutEpochBits *uint8 `json:"PLOT_V1_PHASE_OUT_EPOCH_BITS,omitempty"`
117+
118+
// +optional
119+
MinPlotStrength *uint8 `json:"MIN_PLOT_STRENGTH,omitempty"`
120+
121+
// +optional
122+
MaxPlotStrength *uint8 `json:"MAX_PLOT_STRENGTH,omitempty"`
123+
124+
// +optional
125+
QualityProofScanFilter *uint8 `json:"QUALITY_PROOF_SCAN_FILTER,omitempty"`
126+
127+
// +optional
128+
PlotFilterV2FirstAdjustmentHeight *uint32 `json:"PLOT_FILTER_V2_FIRST_ADJUSTMENT_HEIGHT,omitempty"`
129+
130+
// +optional
131+
PlotFilterV2SecondAdjustmentHeight *uint32 `json:"PLOT_FILTER_V2_SECOND_ADJUSTMENT_HEIGHT,omitempty"`
132+
133+
// +optional
134+
PlotFilterV2ThirdAdjustmentHeight *uint32 `json:"PLOT_FILTER_V2_THIRD_ADJUSTMENT_HEIGHT,omitempty"`
102135
}
103136

104137
// ChiaNetworkStatus defines the observed state of ChiaNetwork

api/v1/zz_generated.deepcopy.go

Lines changed: 57 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/k8s.chia.net_chianetworks.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,25 @@ spec:
7474
HARD_FORK_HEIGHT:
7575
format: int32
7676
type: integer
77+
HARD_FORK2_HEIGHT:
78+
format: int32
79+
type: integer
80+
MAX_PLOT_STRENGTH:
81+
type: integer
7782
MEMPOOL_BLOCK_BUFFER:
7883
type: integer
7984
MIN_PLOT_SIZE:
8085
type: integer
8186
MIN_PLOT_SIZE_V1:
8287
type: integer
83-
MIN_PLOT_SIZE_V2:
88+
MIN_PLOT_STRENGTH:
8489
type: integer
8590
NETWORK_TYPE:
8691
type: integer
92+
NUMBER_ZERO_BITS_PLOT_FILTER_V1:
93+
type: integer
94+
NUMBER_ZERO_BITS_PLOT_FILTER_V2:
95+
type: integer
8796
PLOT_FILTER_32_HEIGHT:
8897
format: int32
8998
type: integer
@@ -93,6 +102,21 @@ spec:
93102
PLOT_FILTER_128_HEIGHT:
94103
format: int32
95104
type: integer
105+
PLOT_FILTER_V2_FIRST_ADJUSTMENT_HEIGHT:
106+
format: int32
107+
type: integer
108+
PLOT_FILTER_V2_SECOND_ADJUSTMENT_HEIGHT:
109+
format: int32
110+
type: integer
111+
PLOT_FILTER_V2_THIRD_ADJUSTMENT_HEIGHT:
112+
format: int32
113+
type: integer
114+
PLOT_SIZE_V2:
115+
type: integer
116+
PLOT_V1_PHASE_OUT_EPOCH_BITS:
117+
type: integer
118+
QUALITY_PROOF_SCAN_FILTER:
119+
type: integer
96120
SOFT_FORK4_HEIGHT:
97121
format: int32
98122
type: integer
@@ -102,6 +126,9 @@ spec:
102126
SOFT_FORK6_HEIGHT:
103127
format: int32
104128
type: integer
129+
SOFT_FORK8_HEIGHT:
130+
format: int32
131+
type: integer
105132
SUB_SLOT_ITERS_STARTING:
106133
format: int64
107134
type: integer

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/chia-network/chia-operator
33
go 1.25.0
44

55
require (
6-
github.com/chia-network/go-chia-libs v1.1.0
6+
github.com/chia-network/go-chia-libs v1.2.3
77
github.com/google/go-cmp v0.7.0
88
github.com/onsi/ginkgo/v2 v2.27.3
99
github.com/onsi/gomega v1.38.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
44
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
55
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
66
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
7-
github.com/chia-network/go-chia-libs v1.1.0 h1:zW60WxMqSPo0fQvxtCf7qI2V9+bxRNyD3kAE+UxeVHM=
8-
github.com/chia-network/go-chia-libs v1.1.0/go.mod h1:TYbjGcYWkFTJOFX0//xVHkToZ4Gs1qtZfDXArgnsiJc=
7+
github.com/chia-network/go-chia-libs v1.2.3 h1:JRVorxxZftH7nYegNVsnv+WnJQiT2T97vMKfi/YxHA8=
8+
github.com/chia-network/go-chia-libs v1.2.3/go.mod h1:2Ud+G6/JdMruQol9Jg8dEe9BvEeDXV0lUXJayT1ujHQ=
99
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1010
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1111
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=

0 commit comments

Comments
 (0)