Replace bitcoin URI scheme with palladium in donation flow and add palladium URI support
This commit is contained in:
@@ -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'))
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user