-
Notifications
You must be signed in to change notification settings - Fork 34
Feature/change nodes #266
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
Feature/change nodes #266
Conversation
valentunn
commented
May 12, 2021
- Move active node tracking from prefs to db
- Add default node change generic migration
- Using migration above, change default nodes (remove web3, add Patract and onFinality)
|
|
||
| @Database( | ||
| version = 18, | ||
| version = 20, |
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 we miss 19 version?
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.
Because there are two migrations in PR - first one from 18 to 19, and second one from 19 to 20
| } | ||
|
|
||
| @Suppress("ClassName") | ||
| class MoveActiveNodeTrackingToDb_18_19(private val migrator: PrefsToDbActiveNodeMigrator) : Migration(18, 19) { |
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.
And here we have migration from 18 to 19, but in another file we have version 20. Can you please help me with understanding why it is so? 🙃
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.
In this PR i, in general, did two things:
- Move active node from prefs to DB
- Change default node set
I decided to do them in separate migration for readability and easier understanding of migrations. That's why there are 18 -> 19 and 19 -> 20 migrations