Skip to content

core/txpool: Support journaling remote transactions with --txpool.journalremotes#97

Merged
protolambda merged 1 commit intooptimismfrom
aj/journal-remote
Jun 2, 2023
Merged

core/txpool: Support journaling remote transactions with --txpool.journalremotes#97
protolambda merged 1 commit intooptimismfrom
aj/journal-remote

Conversation

@ajsutton
Copy link
Copy Markdown
Contributor

@ajsutton ajsutton commented Jun 2, 2023

Description

Adds a --txpool.journalremotes option that ensures all transactions are written to the journal (if enabled) instead of only local ones. When reloading transactions after a restart all loaded transactions are treated as remote.

This is designed to be used with --txpools.nolocals where there are no local transactions but its desirable to have the transaction pool content preserved across restarts.

Metadata

Copy link
Copy Markdown
Contributor

@protolambda protolambda left a comment

Choose a reason for hiding this comment

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

Changes look good to me. The flag description can maybe expand on loading-as-remote behavior for previously local txs, but the comments explain it well enough, and when it combines with txpool.nolocals there are no price exemption edge-cases anyway.

@protolambda protolambda merged commit 3cb51a2 into optimism Jun 2, 2023
@ajsutton ajsutton deleted the aj/journal-remote branch June 5, 2023 04:00
@sebastianst sebastianst mentioned this pull request Feb 12, 2025
4 tasks
gd-0 pushed a commit to gattaca-com/based-op-geth that referenced this pull request May 19, 2025
Co-authored-by: ilitteri <ilitteri@fi.uba.ar>
gd-0 pushed a commit to gattaca-com/based-op-geth that referenced this pull request May 19, 2025
Co-authored-by: ilitteri <ilitteri@fi.uba.ar>
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