Skip to content

fix(cli): make lotus-miner sectors extend command resilient to higher gas #11928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 2, 2025

Conversation

beck-8
Copy link
Contributor

@beck-8 beck-8 commented Apr 25, 2024

Related Issues

#11927

Proposed Changes

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • If the PR affects users (e.g., new feature, bug fix, system requirements change), update the CHANGELOG.md and add details to the UNRELEASED section.
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

Copy link
Contributor Author

@beck-8 beck-8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still incorrect.

@beck-8 beck-8 force-pushed the fix/sectors_extend branch 2 times, most recently from 3c171e7 to 12e188c Compare April 25, 2024 08:04
@rjan90
Copy link
Contributor

rjan90 commented Apr 27, 2024

Thank you so much for the PR. I think this PR just needs a make gen (run the command while in your /lotus folder), to pass the final check.

@rjan90 rjan90 changed the title fix sectors extend fix: cli: lotus-miner sectors extend command Apr 27, 2024
@jennijuju jennijuju requested a review from magik6k May 28, 2024 08:47
Copy link
Contributor

@LexLuthr LexLuthr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good with some questions

@beck-8 beck-8 force-pushed the fix/sectors_extend branch from 932765e to 7245483 Compare June 3, 2024 11:23
@BigLep
Copy link
Member

BigLep commented Feb 10, 2025

2025-02-10 triage conversation: Venus is going to pick this up to get it over the line.

@BigLep BigLep moved this from 🐱 Todo to 👊 Needs Commitment in FilOz Mar 17, 2025
@beck-8
Copy link
Contributor Author

beck-8 commented Jun 30, 2025

Is there any news here?

@BigLep
Copy link
Member

BigLep commented Jun 30, 2025

@beck-8 : thanks for the ping.

@tediou5 : has @filecoin-project/lotus-miner-maintainers looked at this?

@BigLep BigLep requested review from tediou5 and removed request for magik6k June 30, 2025 16:15
Copy link
Contributor

@tediou5 tediou5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@beck-8 Thanks a lot for your PR; it looks good to me. However, you might need to resolve the conflicts first.

Sorry I overlooked it earlier. I’ll push it forward and get it merged ASAP.

@github-project-automation github-project-automation bot moved this from 👊 Needs Commitment to ✔️ Approved by reviewer in FilOz Jul 1, 2025
@beck-8 beck-8 force-pushed the fix/sectors_extend branch from 5349448 to 75bdce0 Compare July 1, 2025 03:03
@beck-8 beck-8 force-pushed the fix/sectors_extend branch from 75bdce0 to b4cf0ad Compare July 1, 2025 03:29
Copy link
Contributor

@tediou5 tediou5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the PR!

Sorry this took so long. I’ll wait a bit in case others are interested, but it should be merged soon. Thanks again for your contribution!

@beck-8
Copy link
Contributor Author

beck-8 commented Jul 1, 2025

Don't worry, the careful review is what we want to see.

@tediou5
Copy link
Contributor

tediou5 commented Jul 1, 2025

@beck-8 By the way, with FIP-0100 implemented and the batch balancer removed, we probably don’t need to worry about that earlier issue anymore.

@beck-8
Copy link
Contributor Author

beck-8 commented Jul 1, 2025

@beck-8 By the way, with FIP-0100 implemented and the batch balancer removed, we probably don’t need to worry about that earlier issue anymore.

out of gas ?
Is this part certain? FIP100 only reduces the gas proportion of some users, but the block limit of the blockchain does not change. I understand that if I have too many sectors in one batch, there will still be a limit.

@tediou5
Copy link
Contributor

tediou5 commented Jul 1, 2025

but the block limit of the blockchain does not change. I understand that if I have too many sectors in one batch, there will still be a limit.

Yes, the block limit still exists, but since messages now contain only the basic gas and the rest has been shifted to a daily fee, a batch message is now almost impossible to hit the block limit.

I can go check the data to confirm. That said, I don’t see a problem with this PR; having it configurable is always good. We might just set a more reasonable default value.

Copy link
Contributor

@tediou5 tediou5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, my bad. I checked again, and while it’s lower, it’s still quite high. Setting it to 500 seems fairly reasonable.

Here are something that could be improved, but I don’t think we need to handle it in this PR.

@beck-8 beck-8 force-pushed the fix/sectors_extend branch from b4cf0ad to f44ff17 Compare July 1, 2025 08:00
Copy link
Contributor

@tediou5 tediou5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thank you.

@rvagg rvagg changed the title fix: cli: lotus-miner sectors extend command fix(cli): make lotus-miner sectors extend command resilient to higher gas Jul 2, 2025
Co-authored-by: Rod Vagg <rod@vagg.org>
@tediou5
Copy link
Contributor

tediou5 commented Jul 2, 2025

/usr/bin/ld: warning: 81a71fbc30f7fcce-sha256_x64.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

CI seems to be having issues, I’ve run into this a few times.

@rvagg
Copy link
Member

rvagg commented Jul 2, 2025

I’ve run into this a few times

this has been my life for a while now .. Go compiler thing on some Linux variants; I'm blind to it these days but maybe I shouldn't be!

@rvagg rvagg merged commit 662f8e2 into filecoin-project:master Jul 2, 2025
173 of 174 checks passed
@github-project-automation github-project-automation bot moved this from ✔️ Approved by reviewer to 🎉 Done in FilOz Jul 2, 2025
@beck-8 beck-8 deleted the fix/sectors_extend branch July 2, 2025 04:33
@@ -31,6 +31,7 @@
- default to ProveCommit aggregation
- remove config options: AggregateCommits, AggregateAboveBaseFee, BatchPreCommitAboveBaseFee
- feat(paych): add EnablePaymentChannelManager config option and disable payment channel manager by default ([filecoin-project/lotus#13139](https://github.com/filecoin-project/lotus/pull/13139))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How

@eddieperez88
Copy link

I can go check the data to confirm but looks great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

7 participants