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

Keep the best block built until now instead of the last one #4455

Merged
merged 7 commits into from
Sep 30, 2022

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Sep 28, 2022

Signed-off-by: Fabio Di Fabio [email protected]

PR description

If the consensus layer client, send more than once the same forkchoice update with payload attributes, we build more blocks with the same payload id, but the current implementation just keep the latest one built, no matter if it is better or not than the existing ones.
This PR improve that, comparing the blocks with the same payload id, and keeping the best according to the amount of gas used, this could be improved in a next iteration, comparing the actual fee reward of the block.

Fixed Issue(s)

fixes #4401

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

@fab-10 fab-10 changed the title Return the best block built until now instead of the last one Keep the best block built until now instead of the last one Sep 29, 2022
Signed-off-by: Fabio Di Fabio <[email protected]>
@fab-10 fab-10 added the mainnet label Sep 29, 2022
@fab-10 fab-10 marked this pull request as ready for review September 29, 2022 13:53
@fab-10 fab-10 merged commit 64bf83c into hyperledger:main Sep 30, 2022
@fab-10 fab-10 deleted the fix-empty-block-on-double-fcu branch September 30, 2022 08:55
jflo pushed a commit to jflo/besu that referenced this pull request Oct 5, 2022
jflo added a commit that referenced this pull request Oct 5, 2022
* Change min selection to an unsigned min (#4420)

Change the "minimum" gas in the TangerineWhistleGasCalculator to use an
unsigned comparison, to ensure a larger signed value is not selected.

Signed-off-by: Danno Ferrin <[email protected]>

* Update Security Policy contact info (#4447)

* Update Security Policy contact info

At the request of the EF, a besu-only security list was created, and is
the first listed email.  The out-of-date Jira location is also removed.

Signed-off-by: Danno Ferrin <[email protected]>

* Keep the best block built until now instead of the last one (#4455)

Signed-off-by: Fabio Di Fabio <[email protected]>

* Add Mainnet to merged networks (#4463)

* Add Mainnet to the merged networks, to force fast-sync-min-peers to 1

Signed-off-by: Fabio Di Fabio <[email protected]>

* Avoid to process transactions during initial sync (#4457)


Signed-off-by: Fabio Di Fabio <[email protected]>

* uprev version to 22.7.5

Signed-off-by: Justin Florentine <[email protected]>

Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
Co-authored-by: Danno Ferrin <[email protected]>
Co-authored-by: Fabio Di Fabio <[email protected]>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Post-Merge some blocks contain 0 transactions
2 participants