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

use a shared simulated tx when mining #6253

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

hexoscott
Copy link
Collaborator

This ensures that the filter bad transactions can use the same context each time, so increases an account nonce in the first batch of transactions is committed to the simulation just in case the same account appears in the next batch of transactions.

Also makes use of the new txpool candidate functionality to ensure we're getting fresh transactions each time.

@yperbasis
Copy link
Member

(Nitpicking) pls run go mod tidy

@hexoscott
Copy link
Collaborator Author

go mod tidy run now after updating to latest erigon-lib to get YieldBest function across.

@AskAlexSharov AskAlexSharov merged commit 47a6f86 into erigontech:devel Dec 9, 2022
@hexoscott hexoscott deleted the mining-fixes branch December 9, 2022 17:48
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.

3 participants