-
Notifications
You must be signed in to change notification settings - Fork 346
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
Send priority fees to collators #3120
Conversation
WASM runtime size check:Compared to target branchMoonbase runtime: 2268 KB (no changes) ✅ Moonbeam runtime: 2244 KB (no changes) ✅ Moonriver runtime: 2248 KB (no changes) ✅ Compared to latest release (runtime-3400)Moonbase runtime: 2268 KB (+240 KB compared to latest release) Moonbeam runtime: 2244 KB (+232 KB compared to latest release) Moonriver runtime: 2248 KB (+236 KB compared to latest release) |
Coverage Report@@ Coverage Diff @@
## master tarekkma/priority-fees +/- ##
==========================================================
+ Coverage 74.40% 74.51% +0.11%
Files 376 376
- Lines 95432 95401 -31
==========================================================
+ Hits 70998 71088 +90
- Misses 24434 24313 -121
|
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.
The changes look good.
I think we should have common implementations of DealWithSubstrateFeesAndTip
, DealWithEthereumBaseFees
, DealWithEthereumPriorityFees
in all runtimes.
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.
LGTM 🚀
What does it do?
Expand on the work done in #2923 and #3043, and send the priority fees to the block author (collator).
What important points reviewers should know?
FeesTreasuryProportion
is used to split the followingDealWithFees
struct and replaced it withDealWithSubstrateFeesAndTip
DealWithEthereumBaseFees
DealWithEthereumPriorityFees
Tests
Some tests that were checking fees have been updated. Previously, they used the block author (ALITH), who will now receive tips due to this change, causing inaccuracies in the calculations.
Reviewer Checklist:
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?