-
Notifications
You must be signed in to change notification settings - Fork 335
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
Increase target block fullness to 50% #2692
Conversation
5e85d9c
to
182b20f
Compare
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.
Added some comments/questions about hardcoding values in test. Not sure we want to do this or the safer version of having a storage value just in case
@@ -171,7 +171,7 @@ describeSuite({ | |||
expect(withdrawEvents?.length).to.equal(1); | |||
const withdrawEvent = withdrawEvents![0]; | |||
const amount = withdrawEvent.event.data.amount.toBigInt(); | |||
expect(amount).to.equal(11_880_382_026_331_795_584n); | |||
expect(amount).to.equal(11_868_507_595_257_710_784n); |
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.
Where does this hardcoded value come from?
@@ -2932,37 +2932,37 @@ mod fee_tests { | |||
|
|||
assert_eq!( | |||
sim(1_000_000_000, Perbill::from_percent(0), 1), | |||
U256::from(999_000_500), | |||
U256::from(998_002_000), |
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.
Where do these hardcoded values come from? If we use a formula maybe compute expected value with the formula?
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
* increase target block fullness to 50% * fix tests * change the target block fullness for moonbeam and moonriver
What does it do?
Increases the target block fullness to 50%.
It impacts the fee increase mechanism, the base fee will increase only when the target block fullness is greater than or equal to the target block fullness
What important points reviewers should know?
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?
On high network usage, the transaction fees should increase at a slower pace