SomberNight
3 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
1 deletions
-
electrum/util.py
|
|
@ -1069,7 +1069,8 @@ def maybe_extract_bolt11_invoice(data: str) -> Optional[str]: |
|
|
|
data = data.strip() # whitespaces |
|
|
|
data = data.lower() |
|
|
|
if data.startswith(LIGHTNING_URI_SCHEME + ':ln'): |
|
|
|
data = data[10:] |
|
|
|
cut_prefix = LIGHTNING_URI_SCHEME + ':' |
|
|
|
data = data[len(cut_prefix):] |
|
|
|
if data.startswith('ln'): |
|
|
|
return data |
|
|
|
return None |
|
|
|