-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(api): implement miner creation deposit requirement #13308
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
feat(api): implement miner creation deposit requirement #13308
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the PR title to match https://github.com/filecoin-project/lotus/blob/master/CONTRIBUTING.md#pr-title-conventions
See: #13310 |
PR title now matches the required format.
There was a problem hiding this 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), |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
56ef4b7
into
filecoin-project:tippy-actors-bundle-nv27
* 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>
Related Issues
#13287
Proposed Changes
StateMinerCreationDeposit
API for deposit calculationAdditional Info
Checklist
Before you mark the PR ready for review, please make sure that: