interface: split request_chunk, based on "can_return_early" param
This commit is contained in:
@@ -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}')
|
||||
|
||||
Reference in New Issue
Block a user