Skip to content

fix(cli): add deposit-margin-factor to the new miner commands#13365

Merged
rjan90 merged 1 commit intofilecoin-project:masterfrom
0x5459:fix/add-deposit-margin-factor-to-new-miner-cmd
Sep 26, 2025
Merged

fix(cli): add deposit-margin-factor to the new miner commands#13365
rjan90 merged 1 commit intofilecoin-project:masterfrom
0x5459:fix/add-deposit-margin-factor-to-new-miner-cmd

Conversation

@0x5459
Copy link
Copy Markdown
Contributor

@0x5459 0x5459 commented Sep 26, 2025

Related Issues

fix #13364

Proposed Changes

Add a deposit-margin-factor option to lotus-miner actor new and lotus-shed miner create to ensure the sent deposit still covers the on-chain requirement (even if it rises between lookup and execution), preventing miner creation from failing due to insufficient deposit.

Additional Info

Checklist

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

@github-project-automation github-project-automation Bot moved this to 📌 Triage in FilOz Sep 26, 2025
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

@github-project-automation github-project-automation Bot moved this from 📌 Triage to ⌨️ In Progress in FilOz Sep 26, 2025
@0x5459 0x5459 changed the title fix(cli): Add deposit-margin-factor to the new miner commands fix(cli): add deposit-margin-factor to the new miner commands Sep 26, 2025
@github-actions github-actions Bot dismissed their stale review September 26, 2025 09:05

PR title now matches the required format.

@0x5459 0x5459 force-pushed the fix/add-deposit-margin-factor-to-new-miner-cmd branch from 52868cd to 2e49213 Compare September 26, 2025 09:14
…miners that fail due to insufficient deposit
@0x5459 0x5459 force-pushed the fix/add-deposit-margin-factor-to-new-miner-cmd branch from 2e49213 to 2609ecf Compare September 26, 2025 09:28
Copy link
Copy Markdown
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.

look good to me, thanks for your pr.

Currently, the mainnet requires approximately 4.4 fil. By default, an additional 0.04 fil will be sent to the miner. This amount is not locked up and can be used by users to pay daily fees. I think this is completely acceptable.

@github-project-automation github-project-automation Bot moved this from ⌨️ In Progress to ✔️ Approved by reviewer in FilOz Sep 26, 2025
@rjan90 rjan90 merged commit d802f8b into filecoin-project:master Sep 26, 2025
95 checks passed
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FilOz Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

Miner creation fails when on-chain deposit moves

3 participants