bip21: add comment listing URI scheme handler registrations
It is sufficiently rare that we have to touch this stuff that I always have to re-discover where/how it is done. And it is impractical to grep for "bitcoin:" or "lightning:". Putting this "master list" comment very close to the BITCOIN_BIP21_URI_SCHEME variable seems like a good spot - at least this is where I would look for it first.
This commit is contained in:
@@ -13,6 +13,12 @@ from .lnaddr import lndecode, LnDecodeException
|
||||
BITCOIN_BIP21_URI_SCHEME = 'bitcoin'
|
||||
LIGHTNING_URI_SCHEME = 'lightning'
|
||||
|
||||
# note: URI scheme handler registrations are duplicated all over the codebase:
|
||||
# - for Android: contrib/android/bitcoin_intent.xml
|
||||
# - for Linux Desktop: electrum.desktop
|
||||
# - for Windows (setup.exe): contrib/build-wine/electrum.nsi
|
||||
# - for macOS: contrib/osx/pyinstaller.spec
|
||||
|
||||
|
||||
class InvalidBitcoinURI(Exception):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user