1
0

interface: split request_chunk, based on "can_return_early" param

This commit is contained in:
SomberNight
2025-07-15 22:53:35 +00:00
parent 5fad4bff8f
commit 6a56fd756b
4 changed files with 34 additions and 31 deletions

View File

@@ -88,7 +88,7 @@ class SPV(NetworkJobOnDefaultServer):
if header is None:
if tx_height <= constants.net.max_checkpoint():
# FIXME these requests are not counted (self._requests_sent += 1)
await self.taskgroup.spawn(self.interface.request_chunk(tx_height, can_return_early=True))
await self.taskgroup.spawn(self.interface.request_chunk_below_max_checkpoint(height=tx_height))
continue
# request now
self.logger.info(f'requested merkle {tx_hash}')