Repository navigation
Un-color the scammers warning when using testnet. - #387
katesalazar wants to merge 4 commits into
Conversation
| "%7WARNING: Scammers have been active, telling users to type" | ||
| " commands here, stealing their wallet contents. Do not use this console" | ||
| " without fully understanding the ramifications of a command.%8") | ||
| .arg(gArgs.GetChainName() == CBaseChainParams::TESTNET ? "<span>" : "<span class=\"secwarning\">", |
There was a problem hiding this comment.
Wonder if it would make sense to the secwarning style to NetworkStyle instead of hardcoding a comparison to testnet here. The idea of that class is to make network-specific style data-driven.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
DISCLAIMER: ATTOW THIS ISN'T LEAK CHECKED.
laanwj wrote:
I think this should be %1 not %7 (and %2 instead of %8 below) now
that it is split to a separate message?
Yes, I forgot to change that.
laanwj also wrote:
Wonder if it would make sense to move the secwarning style to
NetworkStyle instead of hardcoding a comparison to testnet here.
The idea of that class is to make network-specific style
data-driven.
IDK / it could be / no strong opinion.
|
Leak bugs, set draft. |
|
I'm developing this using a powerful Apple machine, but I'm not familiar with leak debugging on macOS. I can use Memcheck, but I don't have any decent hardware running Linux. Would be too much to ask for, to abuse CI as a leak debugger? |
luke-jr
left a comment
There was a problem hiding this comment.
Concept NACK. Testnet is for testing. It should be as close to mainnet use as possible. There's no reason to treat it specially here. Even worse, the code for doing it is excessively complex.
|
I can't prove it introduces leak bugs, unset draft. |
|
luke-jr wrote:
You make an excellent point in general; but specifically about Of course maybe Plasma Breeze Dark is broken, IDK, but if so, maybe it o/ |
|
NACK This change is not well motivated. I see no reason to add extra complexity for a color change that has no real effect on users. If the problem is that the colors don't work in certain environments, then a more general change to the color scheme (and perhaps making it more flexible) would be more appropriate than a targeted change to this one specific line of text. |
|
There's definitely work to be done on supporting user themes/palettes, but this isn't the right approach. (Might I suggest reviving and troubleshooting bitcoin/bitcoin#8889 as a good place to start? ;) |
| /*: RPC console welcome message. | ||
| Placeholders %7 and %8 are style tags for the warning content, and | ||
| they are not space separated from the rest of the text intentionally. */ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
There was a problem hiding this comment.
is useless comment, as 'welcome message' is already the name of the string, and 'RPC console' is already the name of the class.
This is a translator comment dedicated to provide a context to translators on Transifex.com.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
This PR looks pretty controversial: 1 Concept NACK, 2 NACKs. Going to close it. |
|
I am concept NACK on this, not worth added complexity or effort |
|
Closing for now. |
|
I like the general idea of making the network style contribute part of the style sheet as way of accomplishing this. I think this is much better than the initial implementation, which, though simple, hardcoded the network matching in an ad hoc way. Whether the change itself is worth it I don't know. Highlighting the scam warning on testnet doesn't really hurt. |
If scammers are active, telling users to type commands in the console, stealing their testnet wallet contents, maybe someone can send them some more testnet coins.