Skip to content

hww: add a deprecation message popup at get_xpub time for bitbox01 and safe-t - #10871

Open
accumulator wants to merge 2 commits into
spesmilo:masterfrom
accumulator:hww_deprecation_bb01_archos
Open

hww: add a deprecation message popup at get_xpub time for bitbox01 and safe-t#10871
accumulator wants to merge 2 commits into
spesmilo:masterfrom
accumulator:hww_deprecation_bb01_archos

Conversation

@accumulator

Copy link
Copy Markdown
Member

popup at get_xpub() seems most convenient, since this reports to user at wallet creation time, and at existing wallet pairing time.

@SomberNight

Copy link
Copy Markdown
Member

Is the reason this is draft that you cannot test it as you lack the hardware?

If so, say so, and I will try to test it. I have both but have not plugged them in for a long while.

Comment on lines +139 to +146
deprecation_warning = (
"DigitalBitbox (BitBox01) is being deprecated.\n\nIt is no longer supported by the manufacturer.\n"
"Future versions of Electrum will no longer be compatible with it.\n\n"
"You should move your coins and migrate to a modern hardware device.")
_logger.warning(deprecation_warning.replace("\n", " "))

if self.handler:
self.handler.show_warning(deprecation_warning, blocking=True)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe only show this once per process lifecycle?
You could declare a global DEPRECATION_WARNING_SHOWN = False at the top, and set it to true here.

@accumulator

Copy link
Copy Markdown
Member Author

Is the reason this is draft that you cannot test it as you lack the hardware?

If so, say so, and I will try to test it. I have both but have not plugged them in for a long while.

I have a bitbox01, but no safe-t.
I'll put it on Ready after implementing the global DEPRECATION_WARNING_SHOWN you described above

…d safe-t

this adds a show_warning() method on the hardware handler interface, similar to show_error()
@accumulator
accumulator force-pushed the hww_deprecation_bb01_archos branch from de88145 to 4dfe946 Compare August 31, 2026 16:40
@accumulator
accumulator marked this pull request as ready for review August 31, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants