-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fund miners with the aggregate fee when ProveCommitting #6428
Conversation
return []sealiface.CommitBatchRes{res}, xerrors.Errorf("couldn't get base fee: %w", err) | ||
} | ||
|
||
aggFee := miner5.AggregateNetworkFee(len(infos), bf) |
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.
This should be added to the actor policy wrappers and abstracted, but I was lazy...Can do so if people want it.
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.
I'd just do it. Otherwise, we'll miss it if it changes (and this is something I can definitely see changing.
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.
kk done
return []sealiface.CommitBatchRes{res}, xerrors.Errorf("couldn't get base fee: %w", err) | ||
} | ||
|
||
aggFee := miner5.AggregateNetworkFee(len(infos), bf) |
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.
I'd just do it. Otherwise, we'll miss it if it changes (and this is something I can definitely see changing.
|
||
aggFee := miner5.AggregateNetworkFee(len(infos), bf) | ||
|
||
goodFunds := big.Add(b.feeCfg.MaxCommitGasFee, big.Add(collateral, aggFee)) |
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.
Hm.... shouldn't we have a new field for this? Or shouldn't the max fee be a function of the number of sectors, or something like that?
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.
#6420 does that
9a6f48a
to
b0c9dd4
Compare
Depends on #6416 now |
No description provided.