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

Allow negative performing chains and reduce block packing when the basefee is sky high #3550

Closed
wants to merge 5 commits into from

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Sep 4, 2020

No description provided.

@@ -91,7 +98,7 @@ func (mp *MessagePool) republishPendingMessages() error {

// we don't republish negative performing chains, as they won't be included in
// a block anyway
if chain.gasPerf < 0 {
if !allowNegative && chain.gasPerf < 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

As a note, we should republish slightly negative chains. Base fee can fall quite quickly.

Copy link
Contributor

@Kubuxu Kubuxu Sep 4, 2020

Choose a reason for hiding this comment

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

I didn't even think about this effect. In essence, miners who updated to 0.5.10 won't re-pub messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure about that, we might as well wait for the next republish interval.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But yeah, the effect is real -- and I didn't even think about it either.

@vyzo vyzo force-pushed the fix/mpool-basefee-control branch from 8d18778 to c068bc9 Compare September 4, 2020 16:47
@vyzo
Copy link
Contributor Author

vyzo commented Sep 4, 2020

rebased on master.

@vyzo
Copy link
Contributor Author

vyzo commented Sep 7, 2020

it's a lost cause, we'll have real incentives by uncapping the miner penalty in the next 2 forks.

@vyzo vyzo closed this Sep 7, 2020
@vyzo vyzo deleted the fix/mpool-basefee-control branch March 11, 2021 11:07
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.

2 participants