Replace bitcoin URI scheme with palladium in donation flow and add palladium URI support

This commit is contained in:
2026-02-16 00:05:43 +01:00
parent 3d0912979a
commit 85a9fad68b
2 changed files with 3 additions and 2 deletions

View File

@@ -858,7 +858,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):
if d:
self.show_send_tab()
host = self.network.get_parameters().server.host
self.handle_payment_identifier('bitcoin:%s?message=donation for %s' % (d, host))
self.handle_payment_identifier('palladium:%s?message=donation for %s' % (d, host))
else:
self.show_error(_('No donation address for this server'))

View File

@@ -42,7 +42,8 @@ def maybe_extract_lightning_payment_identifier(data: str) -> Optional[str]:
def is_uri(data: str) -> bool:
data = data.lower()
if (data.startswith(LIGHTNING_URI_SCHEME + ":") or
data.startswith(BITCOIN_BIP21_URI_SCHEME + ':')):
data.startswith(BITCOIN_BIP21_URI_SCHEME + ':') or
data.startswith(PALLADIUM_BIP21_URI_SCHEME + ':')):
return True
return False