-
Notifications
You must be signed in to change notification settings - Fork 249
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
fix_: restore node config #6270
base: fix/v1_upgrading
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (11)
|
77e75a4
to
8a439b4
Compare
You will need to rebase your branch on |
8a439b4
to
b0b61de
Compare
beedab2
to
45d97be
Compare
b0b61de
to
d7f725f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## fix/v1_upgrading #6270 +/- ##
====================================================
- Coverage 61.79% 61.77% -0.02%
====================================================
Files 845 845
Lines 111336 111399 +63
====================================================
+ Hits 68797 68819 +22
- Misses 34572 34601 +29
- Partials 7967 7979 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
|
hm, not sure I an help with review |
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.
Since it's for a single user, and it won't be merged, I don't think we needs code review.
If it works for the user - great, if it doesn't - then there are issues in the fix 😄
I have added do not merge
labels and a warning in description.
@qfrank, perhaps makes sense to convert this PR to draft as well?
--
But if the problem is solved, then a second step could be to make the PRs proper and see if we can get them merged. Probably then, the adaptions/fixes you found to work with 3esmit would help other users who never reported anything to us.
@ilmotta, do you think we need to persuade such little issues for few users?
This could even be done manually amending the DB 🤷♂️
if currentConf.NetworkID == 0 && | ||
currentConf.KeyStoreDir == "" && | ||
currentConf.DataDir == "" && | ||
currentConf.NodeKey == "" { |
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.
So the problem is that the node_config
is empty in the database, but... why is this a problem? Can't we just use the default values, without writing them to the database?
Perhaps this is also related (and could be mitigated by) #5597. It seems that loadNodeConfig
actually gives priority to DB values rather than the values passed with CreateAccount
/LoginAccount/
.
Caution
This PR is not intended to be merged
This is a continue work based on PR, the fix could fix the error:
the solution is:
however, this solution will make
loginAccount
looks not beautiful anymore.following is the opinion from @ilmotta
Relate mobile PR
Relate comment