Incorporate the ChunkedFileReader into the FileClient, as opposed to ChunkedFileReader::next_chunk returning a new FileClient. Instead, a new chunk is read upon call to <FileClient as HeadersClient>::get_headers_with_priority, if the FileClient has no more headers in its map.
This requires modifying the ImportCommand. A new arg is needed --tip <block-hash-sync-target>, which must be passed to the FileClient. The pipeline can then be built once.
Additional context
As a side effect, this will enable ETL wrt to the whole file on chunked reads.
Describe the feature
Incorporate the
ChunkedFileReader
into theFileClient
, as opposed toChunkedFileReader::next_chunk
returning a newFileClient
. Instead, a new chunk is read upon call to<FileClient as HeadersClient>::get_headers_with_priority
, if theFileClient
has no more headers in its map.This requires modifying the
ImportCommand
. A new arg is needed--tip <block-hash-sync-target>
, which must be passed to theFileClient
. The pipeline can then be built once.Additional context
As a side effect, this will enable ETL wrt to the whole file on chunked reads.
No response