1
0

tests: test_network: try to explain test cases

no functional changes
This commit is contained in:
SomberNight
2025-06-09 17:57:36 +00:00
parent 09e412baf8
commit cb1789a59c
2 changed files with 25 additions and 5 deletions

View File

@@ -1100,7 +1100,7 @@ class Interface(Logger):
header = await self.get_block_header(height, mode=ChainResolutionMode.BINARY)
chain = blockchain.check_header(header) if 'mock' not in header else header['mock']['check'](header)
if chain:
self.blockchain = chain if isinstance(chain, Blockchain) else self.blockchain
self.blockchain = chain if isinstance(chain, Blockchain) else self.blockchain # for mocking
good = height
else:
bad = height