-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
WIP: Paramstore Refactor Submodules #2233
WIP: Paramstore Refactor Submodules #2233
Conversation
The diff here is already quite massive. Can you move alot of the refactoring things, e.g.
to a separate PR? (You can base this PR off that one) |
return | ||
} | ||
|
||
func (s prefixStore) key(key []byte) (res []byte) { |
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.
Please move to a separate refactoring PR
@@ -0,0 +1,22 @@ | |||
package circuit |
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.
If feasible, can we move the inclusion of circuit breaker stuff to a separate PR. This PR is already super big, and circuit breaker seems like it should be reviewed independently of the other changes that are going on.
|
||
// nolint - reexport | ||
type Space = space.Space | ||
type ReadOnlySpace = space.ReadOnlySpace |
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.
Can you add comments for what these are for
) | ||
|
||
// Returns components for testing | ||
func DefaultTestComponents(t *testing.T) (sdk.Context, Space, func() sdk.CommitID) { |
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.
Do you intend for this to be used in other modules? If not please make these unexported.
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.
It is used by the submodules, and also can be used for modules those uses paramstore internally.
@@ -0,0 +1,40 @@ | |||
package gas |
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.
If feasible, can we move making gas use the param store into a separate PR? This PR is already quite big, and this could likeley be reviewed independently.
I think the reason that it looks big is that this PR is based on (and containing) #2232. This PR only contains (submodules) and consensus parameter related codes. If you are okay with it, I can set the base branch of this PR to #2232 for review so we can see diffs more easily. @ValarDragon |
That sounds good to me! |
8de065f
to
1285a4a
Compare
What's the status on these PR's |
1285a4a
to
9850ab8
Compare
6e0394a
to
cef7fb4
Compare
Codecov Report
@@ Coverage Diff @@
## joon/paramstore-refactor-base #2233 +/- ##
=================================================================
+ Coverage 60.76% 63.69% +2.93%
=================================================================
Files 134 148 +14
Lines 8191 8741 +550
=================================================================
+ Hits 4977 5568 +591
+ Misses 2897 2802 -95
- Partials 317 371 +54 |
5ff5ff3
to
0660f62
Compare
c73bd3d
to
164ffb6
Compare
7cf91b6
to
9fc7e80
Compare
Closing, but leaving the branch for future work. |
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](golang/net@v0.5.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Split from #1772, Contains gas parameter, consensus parameter, circuit breaker submodules; consensus parameter in baseapp.
Closes: #1007
Addresses: #1008
Dependent on: #2232
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added entries in
PENDING.md
with issue #rereviewed
Files changed
in the github PR explorerFor Admin Use: