Browse Source
interface.get_block_header: assert height >= 0
patch-4
SomberNight
3 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
0 deletions
-
electrum/interface.py
|
|
@ -598,6 +598,8 @@ class Interface(Logger): |
|
|
|
self.logger.info("cert fingerprint verification passed") |
|
|
|
|
|
|
|
async def get_block_header(self, height, assert_mode): |
|
|
|
if not is_non_negative_integer(height): |
|
|
|
raise Exception(f"{repr(height)} is not a block height") |
|
|
|
self.logger.info(f'requesting block header {height} in mode {assert_mode}') |
|
|
|
# use lower timeout as we usually have network.bhi_lock here |
|
|
|
timeout = self.network.get_network_timeout_seconds(NetworkTimeout.Urgent) |
|
|
|