Skip to content

Commit 3cd0eac

Browse files
authored
chore: update to Go 1.24 (#1057)
* chore: update to Go 1.24 Signed-off-by: Jakub Sztandera <[email protected]> * stablise TestF3StopStartCatchup test Precise 2/3 consensus is not reliable Signed-off-by: Jakub Sztandera <[email protected]> --------- Signed-off-by: Jakub Sztandera <[email protected]>
1 parent 3dff794 commit 3cd0eac

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23-bullseye AS build
1+
FROM golang:1.24-bullseye AS build
22

33
WORKDIR /go/src/f3
44

f3_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ func TestF3StopStartCatchup(t *testing.T) {
9999
// OhShitStore ERROR level logs.
100100
_ = logging.SetLogLevel("f3/ohshitstore", "DPANIC")
101101

102-
env := newTestEnvironment(t).withNodes(3).start()
102+
env := newTestEnvironment(t).withNodes(4).start()
103103
env.requireInstanceEventually(1, eventualCheckTimeout, true)
104104
env.requireEpochFinalizedEventually(env.manifest.BootstrapEpoch, eventualCheckTimeout)
105105

106106
// Pausing two nodes should pause the network.
107-
env.stopNode(1)
108107
env.stopNode(2)
108+
env.stopNode(3)
109109

110-
env.requireF3NotRunningEventually(eventualCheckTimeout, nodeMatchers.byID(1, 2))
110+
env.requireF3NotRunningEventually(eventualCheckTimeout, nodeMatchers.byID(2, 3))
111111

112112
// Wait until node 0 stops progressing
113113
require.Eventually(t, func() bool {
@@ -118,16 +118,16 @@ func TestF3StopStartCatchup(t *testing.T) {
118118
}, eventualCheckTimeout, eventualCheckInterval)
119119

120120
// Resuming node 1 should continue agreeing on instances.
121-
env.startNode(1)
121+
env.startNode(2)
122122
env.connectAll()
123-
env.requireF3RunningEventually(eventualCheckTimeout, nodeMatchers.byID(1))
123+
env.requireF3RunningEventually(eventualCheckTimeout, nodeMatchers.byID(2))
124124

125125
// Wait until we're far enough that pure GPBFT catchup should be impossible.
126-
targetInstance := env.nodes[1].currentGpbftInstance() + env.manifest.CommitteeLookback + 1
126+
targetInstance := env.nodes[2].currentGpbftInstance() + env.manifest.CommitteeLookback + 1
127127
env.requireInstanceEventually(targetInstance, eventualCheckTimeout, false)
128128

129-
env.startNode(2)
130-
env.requireF3RunningEventually(eventualCheckTimeout, nodeMatchers.byID(2))
129+
env.startNode(3)
130+
env.requireF3RunningEventually(eventualCheckTimeout, nodeMatchers.byID(3))
131131

132132
// Everyone should catch up eventually
133133
env.requireInstanceEventually(targetInstance, eventualCheckTimeout, true)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/filecoin-project/go-f3
22

3-
go 1.23.7
3+
go 1.24
44

55
require (
66
github.com/consensys/gnark-crypto v0.18.1

0 commit comments

Comments
 (0)