Thanks to visit codestin.com
Credit goes to github.com

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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- fix(cli): correctly construct the TerminateSectors params ([filecoin-project/lotus#13207](https://github.com/filecoin-project/lotus/pull/13207))
- feat(net): add LOTUS_ENABLE_MESSAGE_FETCH_INSTRUMENTATION=1 to turn on metrics and debugging for local vs bitswap message fetching during block validation ([filecoin-project/lotus#13221](https://github.com/filecoin-project/lotus/pull/13221))
- feat(spcli): correctly handle the batch logic of `lotus-miner actor settle-deal`; replace the dealid data source ([filecoin-project/lotus#13189](https://github.com/filecoin-project/lotus/pull/13189))
- feat(spcli): add `--all-deals` to `lotus-miner actor settle-deal`. By default, only expired deals are processed ([filecoin-project/lotus#13243](https://github.com/filecoin-project/lotus/pull/13243))

# Node v1.33.0 / 2025-05-08
The Lotus v1.33.0 release introduces experimental v2 APIs with F3 awareness, featuring a new TipSet selection mechanism that significantly enhances how applications interact with the Filecoin blockchain. This release candidate also adds F3-aware Ethereum APIs via the /v2 endpoint. All of the /v2 APIs implement intelligent fallback mechanisms between F3 and Expected Consensus and are exposed through the Lotus Gateway.
Expand Down
18 changes: 17 additions & 1 deletion cli/spcli/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ func ActorDealSettlementCmd(getActor ActorAddressGetter) *cli.Command {
Name: "skip-wait-msg",
Usage: "skip to check the message status",
},
&cli.BoolFlag{
Name: "all-deals",
Usage: "settle all deals. only expired deals are calculated by default",
},
&cli.BoolFlag{
Name: "really-do-it",
Usage: "Actually send transaction performing the action",
Expand Down Expand Up @@ -97,6 +101,12 @@ func ActorDealSettlementCmd(getActor ActorAddressGetter) *cli.Command {
}
}

head, err := api.ChainHead(ctx)
if err != nil {
return err
}
alldeals := cctx.Bool("all-deals")

var (
dealIDs []uint64
dealId uint64
Expand Down Expand Up @@ -152,7 +162,13 @@ func ActorDealSettlementCmd(getActor ActorAddressGetter) *cli.Command {
return xerrors.Errorf("Error getting all deals for miner: %w", err)
}
for _, deal := range data {
dealIDs = append(dealIDs, uint64(deal))
marketDeal, err := api.StateMarketStorageDeal(ctx, deal, types.EmptyTSK)
if err != nil {
continue
}
if marketDeal.Proposal.EndEpoch < head.Height() || alldeals {
dealIDs = append(dealIDs, uint64(deal))
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions documentation/en/cli-lotus-miner.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.