-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[consensus] payload manager enum to trait refactor #14029
Merged
Merged
Conversation
This file contains 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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 17, 2024 19:48
5ec9db7
to
be8db0c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 19, 2024 18:15
be8db0c
to
6a5ac4b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 21, 2024 19:23
6a5ac4b
to
6f17c26
Compare
ibalajiarun
changed the title
Balaji/opt qs
[consensus] payload manager enum to trait refactor
Jul 21, 2024
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 22, 2024 02:16
6f17c26
to
ed41525
Compare
This comment has been minimized.
This comment has been minimized.
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 22, 2024 02:38
ed41525
to
3120643
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 22, 2024 15:45
3120643
to
91fab64
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 22, 2024 16:59
91fab64
to
b994771
Compare
ibalajiarun
requested review from
bchocho,
sasha8,
gelash and
zekun000
as code owners
July 22, 2024 16:59
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 23, 2024 19:41
b994771
to
028ee02
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
zekun000
approved these changes
Jul 23, 2024
sasha8
reviewed
Jul 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR LGTM, but one comment on old code.
proof_with_status.proofs.clone(), | ||
timestamp, | ||
batch_reader.clone(), | ||
batch_reader, | ||
); | ||
proof_with_status | ||
.status | ||
.lock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a race here?
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 23, 2024 21:40
028ee02
to
ee8cf91
Compare
ibalajiarun
force-pushed
the
balaji/opt-qs
branch
from
July 23, 2024 21:50
ee8cf91
to
459d30c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
sasha8
approved these changes
Jul 23, 2024
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Refactors
PayloadManager
such that it's now a trait implementation rather than an Enum. With a trait, we can use specific implementations of PayloadManager trait instead of matching and handling enum values in each impl methods.With the new TPayloadManager trait, we now have the following implementations:
This setup should make it easier to write tests for PayloadManager and other components that use it.