Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23-bullseye AS build
FROM golang:1.24-bullseye AS build

WORKDIR /go/src/f3

Expand Down
16 changes: 8 additions & 8 deletions f3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ func TestF3StopStartCatchup(t *testing.T) {
// OhShitStore ERROR level logs.
_ = logging.SetLogLevel("f3/ohshitstore", "DPANIC")

env := newTestEnvironment(t).withNodes(3).start()
env := newTestEnvironment(t).withNodes(4).start()
env.requireInstanceEventually(1, eventualCheckTimeout, true)
env.requireEpochFinalizedEventually(env.manifest.BootstrapEpoch, eventualCheckTimeout)

// Pausing two nodes should pause the network.
env.stopNode(1)
env.stopNode(2)
env.stopNode(3)

env.requireF3NotRunningEventually(eventualCheckTimeout, nodeMatchers.byID(1, 2))
env.requireF3NotRunningEventually(eventualCheckTimeout, nodeMatchers.byID(2, 3))

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

// Resuming node 1 should continue agreeing on instances.
env.startNode(1)
env.startNode(2)
env.connectAll()
env.requireF3RunningEventually(eventualCheckTimeout, nodeMatchers.byID(1))
env.requireF3RunningEventually(eventualCheckTimeout, nodeMatchers.byID(2))

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

env.startNode(2)
env.requireF3RunningEventually(eventualCheckTimeout, nodeMatchers.byID(2))
env.startNode(3)
env.requireF3RunningEventually(eventualCheckTimeout, nodeMatchers.byID(3))

// Everyone should catch up eventually
env.requireInstanceEventually(targetInstance, eventualCheckTimeout, true)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/filecoin-project/go-f3

go 1.23.7
go 1.24

require (
github.com/consensys/gnark-crypto v0.18.1
Expand Down
Loading