tests: test_network: intro MockBlockchain. rewrite tests to use it.
interface.py no longer has knowledge about mocking! :P
This commit is contained in:
@@ -626,7 +626,7 @@ class Blockchain(Logger):
|
||||
work_in_last_partial_chunk = (height % CHUNK_SIZE + 1) * work_in_single_header
|
||||
return running_total + work_in_last_partial_chunk
|
||||
|
||||
def can_connect(self, header: dict, check_height: bool=True) -> bool:
|
||||
def can_connect(self, header: dict, *, check_height: bool = True) -> bool:
|
||||
if header is None:
|
||||
return False
|
||||
height = header['block_height']
|
||||
|
||||
Reference in New Issue
Block a user