Merge pull request #10033 from SomberNight/202507_interface_fast_forward

interface: parallel header-chunks download
This commit is contained in:
ghost43
2025-07-31 15:47:11 +00:00
committed by GitHub
4 changed files with 60 additions and 33 deletions
-13
View File
@@ -1311,19 +1311,6 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):
# otherwise:
return _("Unknown error")
@best_effort_reliable
@catch_server_exceptions
async def request_chunk(
self,
height: int,
*,
tip: Optional[int] = None,
can_return_early: bool = False,
) -> Optional[Tuple[bool, int]]:
if self.interface is None: # handled by best_effort_reliable
raise RequestTimedOut()
return await self.interface.request_chunk(height, tip=tip, can_return_early=can_return_early)
@best_effort_reliable
@catch_server_exceptions
async def get_transaction(self, tx_hash: str, *, timeout=None) -> str: