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.
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
Pchain validators repackaging #1284
Pchain validators repackaging #1284
Changes from 1 commit
795a10a
629ffd8
61fd676
e725784
0c8bc40
7bd3093
d91c656
97bafa4
d9b9452
2248f3c
bea7c15
816dd86
da0d822
18e9bb8
9a978cc
db2e956
bcbe002
d53f5e9
fa3ee2b
4f24a50
ee25500
42b1dd5
a736dfc
40e6092
cb1eafb
1e3d889
c2ccff7
4855ec9
330e83a
79262a5
d55469b
cfbd56f
dcc6aa7
bb3be27
12590b2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I think we don't need this interface, we can have an interface with only Track that is implemented by the same struct.
We could also rename Track to OnAccept and name the interface AcceptedBlockTracker or similar.
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.
I think Track sucks and we should find a better name. OnAccept is a reasonble suggestion and I have implemented it.
On the other hand, I don't really like the idea of reducing Manager interface to
AcceptedBlockTracker
.This manager is a pretty big class doing a bunch of not-so-related things, which are together only because there are listed under the same
validators.State
. It seems to me thatAcceptedBlockTracker
goes in the direction of slicing off one of this things which may be the right thing to do here. Only if we go there, we should probably first slicevalidators.State
and then extract the OnAccept interface.This file was deleted.