Browse Source
network: (trivial) ignore empty string donation address
regtest_lnd
SomberNight
6 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/network.py
|
|
@ -376,7 +376,8 @@ class Network(PrintError): |
|
|
|
async def get_donation_address(): |
|
|
|
addr = await session.send_request('server.donation_address') |
|
|
|
if not bitcoin.is_address(addr): |
|
|
|
self.print_error(f"invalid donation address from server: {addr}") |
|
|
|
if addr: # ignore empty string |
|
|
|
self.print_error(f"invalid donation address from server: {repr(addr)}") |
|
|
|
addr = '' |
|
|
|
self.donation_address = addr |
|
|
|
async def get_server_peers(): |
|
|
|