-
Notifications
You must be signed in to change notification settings - Fork 38
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
node, ir: rename morph
config to fschain
#3028
Conversation
58241c9
to
c4c54cd
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3028 +/- ##
==========================================
+ Coverage 22.62% 22.65% +0.02%
==========================================
Files 791 791
Lines 58531 58618 +87
==========================================
+ Hits 13244 13277 +33
- Misses 44389 44445 +56
+ Partials 898 896 -2 ☔ View full report in Codecov by Sentry. |
These are DB keys, not a big problem. |
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.
Shouldn't we drop cmd/neofs-node/config/morph
?
My vote is for migration for all the db keys that have morph
.
Signed-off-by: Andrey Butusov <[email protected]>
c4c54cd
to
dd416b0
Compare
// migration for deprecated DB key | ||
if fromFSChainBlock == 0 && fromDeprectedSidechanBlock != fromFSChainBlock { | ||
fromFSChainBlock = fromDeprectedSidechanBlock | ||
err = server.persistate.SetUInt32(persistateFSChainLastBlockKey, fromFSChainBlock) |
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.
should we drop the previous value? @roman-khimov
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.
Why keeping it? No one cares, can be dropped.
Signed-off-by: Andrey Butusov <[email protected]>
Rename the `morph` section in the code, config and examples to `fschain`. Maintain compatibility for the transition and warn if `morph` is used. Migrate data for deprecated DB key to new. Refs #3021. Signed-off-by: Andrey Butusov <[email protected]>
dd416b0
to
0d6d425
Compare
Tests need to be fixed.
We need to keep compatibility here as well. |
Leave compatibility with the `morph` command and warn if it executes. Refs #2702. Signed-off-by: Andrey Butusov <[email protected]>
Signed-off-by: Andrey Butusov <[email protected]>
Rename the `morph` section in the code, config and examples to `fschain`. Maintain compatibility for the transition and warn if `morph` is used. Migrate data for deprecated DB key to new. Closes #3021. Signed-off-by: Andrey Butusov <[email protected]>
0d6d425
to
67d82d2
Compare
After this nspcc-dev/neofs-node#3028, the `morph` was renamed to `fschain`. Signed-off-by: Andrey Butusov <[email protected]>
After this nspcc-dev/neofs-node#3028, the `morph` was renamed to `fschain`. Signed-off-by: Andrey Butusov <[email protected]>
After this nspcc-dev/neofs-node#3028, the `morph` was renamed to `fschain`. Signed-off-by: Andrey Butusov <[email protected]>
After this nspcc-dev/neofs-node#3028, the `morph` was renamed to `fschain`. Signed-off-by: Andrey Butusov <[email protected]>
Closes #3021.
Not sure about
neofs-node/pkg/innerring/state.go
Line 22 in 3f6d545
and
neofs-node/cmd/neofs-node/config.go
Line 525 in 3f6d545