Skip to content

Introduce payload building timeout #511

Description

@ilchu

We currently don't time out any of the block building efforts, but @birchmd's load testing has shown that block build times can be very variable, sometimes (though rarely) exceeding configured block time.

What Geth does in this case is offsetting the build job into the background and allowing it to do a few rounds of populating the transactions from mempool while also keeping track of the elapsed time. The last round happens when timeout is drawing near, i.e. there is less time left than last update cycle length.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    transactionsChanges transaction processing

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions