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

[ETH] Upgrade packer to EIP 1559 gas fees #221

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

odesenfans
Copy link
Contributor

@odesenfans odesenfans commented Mar 29, 2022

Upgraded the packer task to use EIP 1559 fees instead of legacy
fees. The task now specifies the maxFeePerGas parameter to
specify the maximum allowed value for the base + priority fee.
It also specifies a maximum priority fee of 2 gwei by default,
as this seems to be a recommended value to get the transaction
included by miners.

@odesenfans odesenfans added this to the v0.2.2 milestone Mar 30, 2022
Fixed an issue where the pending message job would block on
the final messages in the queue and stop processing newer messages.

Once the job finishes the loop on all the messages in the pending
message collection, the previous implementation waits until all
the message tasks finish. This causes a delay of several hours
until the node finishes these tasks and is able to process newer
pending messages again. Messages end up being processed, but far
later than expected.

The issue arises because we never remove messages from the pending
queue if we fail to retrieve the associated content. The job
then always has messages in the queue, causing the issue.

Fixed the issue by allowing the loop to restart without waiting
for messages to be processed. We now compute an individual ID
for each pending message and add it to a set. The job will simply
ignore any message that is already being processed, allowing
for newer messages to be taken into account.
Upgraded the packer task to use EIP 1559 fees instead of legacy
fees. The task now specifies the `maxFeePerGas` parameter to
specify the maximum allowed value for the base + priority fee.
It also specifies a maximum priority fee of 2 gwei by default,
as this seems to be a recommended value to get the transaction
included by miners.
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.

1 participant