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 RPC console: history sensitive-data filter, and saving input line when browsing history #8877
Conversation
|
Concept ACK |
MarcoFalke
added
the
GUI
label
Oct 4, 2016
|
Concept ACK. Maybe add a comment that signrawtransaction can be removed from this list if it's ever split into a wallet call and a utility call. |
|
If we're adding privkey stuff here, then Won't those commands not show up in history? I think it should at least show that the command happened. |
|
Concept ACK |
|
@sipa If @achow101 I agree it would be better to add dummy history items, but comments on previous PRs seem to suggest that is a source of disagreement. Added |
|
@luke-jr instead of masking out the arguments as I did in my PR, what if you just added the command name to the history. Since all the commands pass through that filter method, you could have it return the string that goes into the history. For non-filtered commands, it returns the command itself. For filtered ones, it just returns the command name. |
Would work for me. My main comment on doing it @achow101 's way with masking individual arguments is just that that is too brittle and hard to maintain. If having just the command name to the history is useful in any way, which I doubt a bit with the incredible autocompletion that the debug console has these days, you could do that. |
|
I consider it useful to have any placeholder in history, since otherwise one might <up>-<enter> and get the second-to-last execution instead. At least with a dummy placeholder, they get an error/help. |
laanwj
referenced this pull request
Oct 4, 2016
Closed
[Qt][RPC] Hide passphrases in debug console history #8746
|
|
Rebased and taught it to handle nested commands. When a filtered command is encountered, all its parameters are replaced with "(…)" in the command history. Unit tests now check this. |
| + << "walletpassphrase" | ||
| + << "walletpassphrasechange" | ||
| + << "encryptwallet"; | ||
| + |
|
Tested a bit. |
added a commit
to bitcoinknots/bitcoin
that referenced
this pull request
Dec 21, 2016
jonasschnelli
and others
added some commits
Mar 13, 2015
|
Looks good. Squash/combine some commits? |
|
Rather not squash... They look reasonably logical progression, and squashing is a bad practice anyway. |
|
Tested ACK 8562792 |
|
Tested ACK 8562792 |
jonasschnelli
merged commit 8562792
into
bitcoin:master
Jan 3, 2017
1 check passed
added a commit
that referenced
this pull request
Jan 3, 2017
|
|
|
@paveljanik That looks like a bug in the compiler? |
|
Why do you think so? It is clear that |
|
@paveljanik: Maybe write a fix PR? |
|
@paveljanik It's a different scope, and lambda functions do not inherit the scope of the calling function beyond what you tell it to. |
|
@luke-jr Not by default, but your lambda has capture list |
|
I thought |
|
@luke-jr Well, yes. But if -Wshadow wants to catch potential errors resulting from variables being identically named, it should absolutely catch this. |
|
@luke-jr What name do you want me to use inside lambda instead of |
|
Sure |

luke-jr commentedOct 4, 2016
Rescuing uncontroversial parts of #5891
Alternative to #8746