Skip to content
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

Merged
merged 5 commits into from
Jun 9, 2021

Conversation

arajasek
Copy link
Contributor

@arajasek arajasek commented Jun 9, 2021

No description provided.

return []sealiface.CommitBatchRes{res}, xerrors.Errorf("couldn't get base fee: %w", err)
}

aggFee := miner5.AggregateNetworkFee(len(infos), bf)
Copy link
Contributor Author

@arajasek arajasek Jun 9, 2021

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.

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

kk done

@arajasek arajasek added this to the Network Hyperdrive milestone Jun 9, 2021
@arajasek arajasek self-assigned this Jun 9, 2021
return []sealiface.CommitBatchRes{res}, xerrors.Errorf("couldn't get base fee: %w", err)
}

aggFee := miner5.AggregateNetworkFee(len(infos), bf)
Copy link
Member

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))
Copy link
Member

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

#6420 does that

@arajasek
Copy link
Contributor Author

arajasek commented Jun 9, 2021

Depends on #6416 now

@magik6k magik6k merged commit 69ec16f into release/v1.10.0 Jun 9, 2021
@magik6k magik6k deleted the asr/aggregate-fee branch June 9, 2021 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants