Skip to content

Conversation

0x5459
Copy link
Contributor

@0x5459 0x5459 commented Sep 4, 2025

Related Issues

#13287

Proposed Changes

  • AddStateMinerCreationDeposit API for deposit calculation
  • Update miner creation flows to use required deposit
  • Add genesis support and comprehensive test coverage
  • Enforce deposit validation after NV27 upgrade

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 4, 2025
Copy link

@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 4, 2025
@0x5459 0x5459 marked this pull request as draft September 4, 2025 07:46
@tediou5 tediou5 added the skip/changelog This change does not require CHANGELOG.md update label Sep 4, 2025
@tediou5 tediou5 changed the title feat(fip-0077): implement miner creation deposit requirement test: implement miner creation deposit requirement Sep 4, 2025
@tediou5 tediou5 removed the skip/changelog This change does not require CHANGELOG.md update label Sep 4, 2025
@tediou5 tediou5 changed the title test: implement miner creation deposit requirement feat(miner): implement miner creation deposit requirement Sep 4, 2025
@0x5459
Copy link
Contributor Author

0x5459 commented Sep 4, 2025

https://github.com/filecoin-project/lotus/actions/runs/17459077070/job/49579421768?pr=13308

This modification did not involve multi-signature testing, and I don’t understand why the test failed.

See: #13310

@0x5459 0x5459 marked this pull request as ready for review September 4, 2025 09:50
@tediou5 tediou5 requested review from BigLep and rvagg September 4, 2025 09:51
@BigLep BigLep moved this from ⌨️ In Progress to 🔎 Awaiting Review in FilOz Sep 4, 2025
@BigLep BigLep requested a review from ZenGround0 September 4, 2025 15:28
@ZenGround0 ZenGround0 changed the title feat(miner): implement miner creation deposit requirement feat(api): implement miner creation deposit requirement Sep 4, 2025
@github-actions github-actions bot dismissed their stale review September 4, 2025 16:27

PR title now matches the required format.

Copy link
Contributor

@ZenGround0 ZenGround0 left a comment

Choose a reason for hiding this comment

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

Overall LGTM

@@ -477,7 +476,7 @@ func (g *Garbager) createMiner(ctx context.Context) *lapi.MsgLookup {
createStorageMinerMsg := &types.Message{
To: power.Address,
From: worker,
Value: big.Zero(),
Value: types.FromFil(1),
Copy link
Contributor

Choose a reason for hiding this comment

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

Calculating deposit from api is probably more stable so there's less chance of this flaking. API is at g.node.

Copy link
Member

Choose a reason for hiding this comment

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

Tracking issue to do this in a followup: #13312 . I'll resolve this comment.

@github-project-automation github-project-automation bot moved this from 🔎 Awaiting Review to ✔️ Approved by reviewer in FilOz Sep 4, 2025
@BigLep BigLep mentioned this pull request Sep 4, 2025
1 task
@BigLep BigLep merged commit 56ef4b7 into filecoin-project:tippy-actors-bundle-nv27 Sep 4, 2025
91 checks passed
@github-project-automation github-project-automation bot moved this from ✔️ Approved by reviewer to 🎉 Done in FilOz Sep 4, 2025
BigLep added a commit that referenced this pull request Sep 4, 2025
* chore: build: Update actor bundle to v17.0.0-dev1

* feat(api): implement miner creation deposit requirement (#13308)

* feat(api): add `StateMinerCreationDeposit` API method for FIP-0077

* feat(miner): implement miner creation deposit calculation for FIP-0077

* feat(tests): add migration tests for miner creation deposit across NV26 and NV27 upgrades

* chore(tests): remove multisig test functions

* Update gen and docsgen-cli

---------

Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: 0x5459 <0x5459@protonmail.com>
Co-authored-by: Steve Loeppky <biglep@filoz.org>
@0x5459 0x5459 deleted the fip-0077 branch September 9, 2025 07:48
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.

4 participants