-
Notifications
You must be signed in to change notification settings - Fork 714
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
[Refactor] Init wallet parameters interaction #1445
[Refactor] Init wallet parameters interaction #1445
Conversation
Partially coming from 25340b7
15b68f1
to
2ef17bb
Compare
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.
Code ACK.
Just minor concerns about some code duplication between wallet and init. E.g the UIError
/UIWarning
static functions in wallet have almost the same implementation of InitError
/InitWarning
functions (also static) in init.cpp. Wouldn't it be better to export them from wallet and use them during init as well?
Actually, imo they don't even belong to the wallet file, really: should be in some "util" file, and imported from there both in wallet and init.
You know, I thought on that but then thought on the translation context for the Good catch on the |
why? |
The |
Right. |
it could but not really the file's responsibility. That file should be clean as possible from utility functions. |
I don't think |
d0a2ae3
to
b7d1c41
Compare
Updated. |
b7d1c41
to
d452a2d
Compare
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.
ACK d452a2d
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.
ACK 831834c
This PR does two things:
pwalletMain
object inside thewallet.h
file.ParameterInteraction
in the wallet class.This is coming (partially) from upstream 25340b7 .