Skip to content

Commit

Permalink
fix(f3): try to make f3 participation stick to a single node (#12664)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien authored and rjan90 committed Nov 4, 2024
1 parent ee916fd commit 8364329
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chain/lf3/participation.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/filecoin-project/go-f3/manifest"

"github.com/filecoin-project/lotus/api"
cliutil "github.com/filecoin-project/lotus/cli/util"
"github.com/filecoin-project/lotus/node/modules/dtypes"
)

Expand Down Expand Up @@ -89,6 +90,11 @@ func (p *Participant) run(ctx context.Context) (_err error) {
}
}()

// Try to make send all requests to the same node. If a request fails, we'll switch nodes.
// This interacts with the FullNodeProxy, which is how we support multi-node setups by
// default.
ctx = cliutil.OnSingleNode(ctx)

var ticket api.F3ParticipationTicket
for ctx.Err() == nil {
var err error
Expand Down

0 comments on commit 8364329

Please sign in to comment.