Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
[Qt] show wallet HD state in statusbar #8517
Conversation
jonasschnelli
added
the
GUI
label
Aug 15, 2016
|
Addresses #8508 |
|
The typo in the screenshots is fixed in the code. |
MarcoFalke
and 1 other
commented on an outdated diff
Aug 15, 2016
| @@ -30,7 +30,7 @@ class WalletFrame : public QFrame | ||
| void setClientModel(ClientModel *clientModel); | ||
| bool addWallet(const QString& name, WalletModel *walletModel); | ||
| - bool setCurrentWallet(const QString& name); | ||
| + WalletModel* setCurrentWallet(const QString& name); |
MarcoFalke
Member
|
|
Concept ACK ad6145b |
|
Travis:
Interesting, compiles cleanly here 8) But why if:
|
paveljanik
commented on an outdated diff
Aug 15, 2016
|
I like the idea to show HD to the user somewhere. But isn't it worth new headline Wallet or even green or red sign instead of "enabled"/"disabled" there, prominent one. Is the wallet version so important for the user, BTW? |
|
Fixed the |
|
@paveljanik: I though about adding a new section. But the console window is already large and my goal was to keep it below 480px height (to prevent overflow if you run on a small screen which happens regularly when bootstrapping servers). Maybe another option would be to create a new window for the wallet informations. That window could also allow verify the used HD seed (maybe exporting), kepool size, encryption state, maybe derive keys at a given keypath, etc. I'm not sure if the debug window is the right place for wallet informations regarding a possible upcoming support for multi wallet. |
|
Travis failure in libsecp256k1 now unrelated |
I tend to agree with this. This has always been the reason to push back on changes that would add wallet information to the debug window. I'd suggest this:
Further ahead something like that might be nice. |
Was about to suggest just that. |
jonasschnelli
changed the title from
[Qt] show wallet version and HD state in debugwindow
to
[Qt] show wallet HD state in statusbar
Aug 17, 2016
|
Looks good! Hope we can get 4K soon. :) Issue with build:
|
|
@MarcoFalke thanks for the report. Fixed the compile issue. |
|
nit: please fix the typo (endabled -> enabled) in the commit message |
paveljanik
and 2 others
commented on an outdated diff
Aug 18, 2016
| @@ -988,28 +991,37 @@ bool BitcoinGUI::handlePaymentRequest(const SendCoinsRecipient& recipient) | ||
| return false; | ||
| } | ||
| +void BitcoinGUI::setHDStatus(int hdEnabled) | ||
| +{ | ||
| + labelWalletHDStatusIcon->setPixmap(platformStyle->SingleColorIcon(hdEnabled ? ":/icons/hd_enabled" : ":/icons/hd_disabled").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); | ||
| + labelWalletHDStatusIcon->setToolTip(tr(hdEnabled ? "HD key generation is <b>enabled</b>" : "HD key generation is <b>disabled</b>")); |
MarcoFalke
Member
|
paveljanik
commented on an outdated diff
Aug 18, 2016
| @@ -98,6 +98,9 @@ void WalletView::setBitcoinGUI(BitcoinGUI *gui) | ||
| // Pass through transaction notifications | ||
| connect(this, SIGNAL(incomingTransaction(QString,int,CAmount,QString,QString,QString)), gui, SLOT(incomingTransaction(QString,int,CAmount,QString,QString,QString))); | ||
| + | ||
| + // Connect hd-enabled state signal |
|
|
|
Looks brilliant, thanks! |
|
Fixed the nits (typo in commit, |
|
Works for me: tested with my old testnet wallet, I get the HD disabled icon, tested with a new regtest wallet, get the HD enabled icon. Awesome. |
|
Tested ACK 914154f |
jonasschnelli
merged commit 914154f
into
bitcoin:master
Aug 19, 2016
1 check passed
added a commit
that referenced
this pull request
Aug 19, 2016
jonasschnelli
referenced this pull request
Aug 19, 2016
Closed
Show in GUI the type of Wallet (HD or old non-HD) #8508
MarcoFalke
commented on the diff
Aug 19, 2016
| @@ -98,6 +98,9 @@ void WalletView::setBitcoinGUI(BitcoinGUI *gui) | ||
| // Pass through transaction notifications | ||
| connect(this, SIGNAL(incomingTransaction(QString,int,CAmount,QString,QString,QString)), gui, SLOT(incomingTransaction(QString,int,CAmount,QString,QString,QString))); | ||
| + | ||
| + // Connect HD enabled state signal | ||
| + connect(this, SIGNAL(hdEnabledStatusChanged(int)), gui, SLOT(setHDStatus(int))); |
|
|
MarcoFalke
commented on the diff
Aug 19, 2016
|
Post merge tested ACK 914154f |
MarcoFalke
referenced this pull request
Aug 19, 2016
Open
Feat Request (Qt/GUI): Tor status indicator icon in bottom right #7734
|
Heh, this pull req is funny as it reminds me when all television manufacturers were keen to put HD on their products, and before then it was HiFi.... now it seems bitcoin-qt has caught the marketing bug :) |
added a commit
to bitcoinknots/bitcoin
that referenced
this pull request
Oct 20, 2016
|
Hi, why has this request been pulled to master on August 19. but is not in 0.13.1rc2, which has been released 2 months later? Missing the HD icon :( I am not very familiar with modern developing process with branches, tags etc. I am really curious, for the case that this is on purpose, how You select the peaces from master to a release, or to prevent, as in this example, a PR to come to a release, but stay just in master, to make it probably in a future release? Are all PRs so strictly modular, that You can know, that there are no dependencies missing?? Or how does this work? I would be thankful for a little hint on the release tagging process, or what it's name is. |
|
@wodry We only backport bug fixes as per our policy: https://bitcoincore.org/en/lifecycle/#maintenance-releases However, I would not object to backport this GUI-only feature, if people consider it important and when there is an rc3. |
|
Thanks for Your answer, Marco. Because of the big change with new segwit in 0.13.1, I was not aware, that this is still a "minor" bugfix release regarding non-consensus things. (which really makes sense) |


jonasschnelli commentedAug 15, 2016
•
Edited 1 time
-
jonasschnelli
Aug 17, 2016
Shows the HD enabled state in the status bar.
Example
