Skip to content

Commit 2da0b72

Browse files
authored
fix(f3): try to make f3 participation stick to a single node (#12664)
1 parent 49f3b55 commit 2da0b72

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- Fix issue where F3 wouldn't start participating again if Lotus restarted without restarting the Miner ([filecoin-project/lotus#12640](https://github.com/filecoin-project/lotus/pull/12640)).
2525
- Change the F3 HeadLookback parameter to 4 ([filecoin-project/lotus#12648](https://github.com/filecoin-project/lotus/pull/12648)).
2626
- Upgrade go-f3 to 0.7.1 to resolve Tipset not found errors when trying to establish instance start time ([filecoin-project/lotus#12651](https://github.com/filecoin-project/lotus/pull/12651)).
27+
- Try harder in the F3 participation loop to participate using the same lotus node ([filecoin-project/lotus#12664](https://github.com/filecoin-project/lotus/pull/12664)).
2728
- The mining loop will now correctly "stick" to the same upstream lotus node for all operations pertaining to mining a single block ([filecoin-project/lotus#12665](https://github.com/filecoin-project/lotus/pull/12665)).
2829

2930
## Deps

chain/lf3/participation.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"github.com/filecoin-project/go-f3/manifest"
1515

1616
"github.com/filecoin-project/lotus/api"
17+
cliutil "github.com/filecoin-project/lotus/cli/util"
1718
"github.com/filecoin-project/lotus/node/modules/dtypes"
1819
)
1920

@@ -89,6 +90,11 @@ func (p *Participant) run(ctx context.Context) (_err error) {
8990
}
9091
}()
9192

93+
// Try to make send all requests to the same node. If a request fails, we'll switch nodes.
94+
// This interacts with the FullNodeProxy, which is how we support multi-node setups by
95+
// default.
96+
ctx = cliutil.OnSingleNode(ctx)
97+
9298
var ticket api.F3ParticipationTicket
9399
for ctx.Err() == nil {
94100
var err error

0 commit comments

Comments
 (0)