Repository navigation
Abstract over transaction execution with TransactionReceiver trait - #5114
Merged
Merged
Conversation
jmg-duarte
force-pushed
the
jmgd/submission-submitter
branch
from
October 16, 2026 15:39
78e419d to
d1f779a
Compare
jmg-duarte
marked this pull request as ready for review
October 20, 2026 12:35
Contributor
|
Claude finished @jmg-duarte's task in 2m 13s —— View job Review: Put settlement submission behind a
|
MartinquaXD
reviewed
Oct 20, 2026
jmg-duarte
force-pushed
the
jmgd/submission-submitter
branch
from
October 21, 2026 13:31
9f7da35 to
d678601
Compare
MartinquaXD
approved these changes
Oct 21, 2026
|
|
||
| #[derive(Clone, Copy)] | ||
| enum Outcome { | ||
| pub(crate) enum Outcome { |
Contributor
There was a problem hiding this comment.
Eventually it would be nice to move the trait and the metrics we expect it to populate into a separate file such that the 3 variants (blockbuilder, mempools, private_relay) can then be put into a separate directory nicely.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Places the settlement submission behind a trait to simplify the addition of builders in a follow up PR (and lower the amount of changes). Note that the diff for the mempools.rs file is quite large but mostly whitespace.
Changes
TransactionReceivertrait.Mempoolsbecomes anArc<dyn TransactionReceiver>.How to test
Existing tests