electrum icon indicating copy to clipboard operation
electrum copied to clipboard

Added option for disabling watch-only notification

Open myxmaster opened this issue 3 years ago • 7 comments

This fixes #2835.

I added a checkbox in the warning dialog to disable the warning, also added the option in Preferences -> Misc to toggle it.

warning-dialog

preferences

myxmaster avatar Jan 09 '23 23:01 myxmaster

I think there is a real risk of a casual user creating a wallet from an address and not realising it's watch-only. They might have previously selected "don't show again" for another wallet, in which case they would not get a warning anymore.

I suppose if you use a watch-only wallet on a regular basis it might become a nuisance to always get the popup... I imagine that's your motivation, right? Maybe we could add the "don't show" option on a per-wallet basis (save into wallet file instead of config?).

Even then, people might forget that a wallet is watching-only. :/

And re exposing the option in the Preferences, that seems overkill. People who would hide the warning in the first place would not likely re-enable it later IMO.

SomberNight avatar Jan 10 '23 00:01 SomberNight

I thought about that and found it is not a serious problem because worst thing that happens is: You cannot send. And then you very likely remember why :)

Also: I had the idea to add "Watch-only Wallet" in the title bar of the main window. That way people who don't remember turning off watch-only-warning can still see this anytime.

myxmaster avatar Jan 10 '23 00:01 myxmaster

I thought about that and found it is not a serious problem because worst thing that happens is: You cannot send. And then you very likely remember why :)

Some people create imported wallets from random addresses they find on forums/etc, to monitor their history. If they mistakenly hand those out to receive on, the money is lost to them (as the address belongs to someone else).

Also: I had the idea to add "Watch-only Wallet" in the title bar of the main window.

That's already there: https://github.com/spesmilo/electrum/blob/10e7d8d9264060b3887f9346d4b44eb1d631ebc5/electrum/gui/qt/main_window.py#L535

SomberNight avatar Jan 10 '23 00:01 SomberNight

Maybe we could add the "don't show" option on a per-wallet basis (save into wallet file instead of config?).

You are right, that's a little bit more safe.

Some people create imported wallets from random addresses they find on forums/etc, to monitor their history. If they mistakenly hand those out to receive on, the money is lost to them (as the address belongs to someone else).

Ok, that's true. What about a warning message in case a user tries to create a payment request for a watch-only wallet? Would you then feel comfortable adding this feature? If not, please comment/close issue #2835.

That's already there:

https://github.com/spesmilo/electrum/blob/10e7d8d9264060b3887f9346d4b44eb1d631ebc5/electrum/gui/qt/main_window.py#L535

Uhm yeah, didn't even check, sorry :)

myxmaster avatar Jan 10 '23 14:01 myxmaster

The popup is also a protection against some attacks. There have been reports of users having a watching-only wallet maliciously installed on their computer. It is a very cheap attack, requires no programming skills. Someone with unauthorized access to a computer would certainly disable that popup too.

Uhm yeah, didn't even check, sorry :)

No, it is not that you did not check, but that you did not see it. The title bar thing is not visible enough, this is why we have this popup.

ecdsa avatar Jan 11 '23 09:01 ecdsa

No, it is not that you did not check, but that you did not see it.

Indeed, good point. I still think that it can be annoying for advanced users to always quit that popup.

Another idea: Receive Tab and Addresses Tab could start with a highly visible warning, something like in this mockup:

mockup

That way people who use Electrum for checking balances of cold wallets can turn off the annoying popup at app start, but inattentive users won't get scammed so easily.

myxmaster avatar Jan 13 '23 17:01 myxmaster

Note: my previous point about attacks is partially addressed by the fact that watching only wallets can be encrypted. In that case, the fact that one has to type a password protects against the wallet being replaced.

ecdsa avatar May 21 '25 09:05 ecdsa