Expand description
Fetching segments of the archived history of Subspace Network.
Enums§
- Segment
Downloading Error - Segment getter errors.
Constants§
- SEGMENT_
DOWNLOAD_ RETRIES - The number of times we try to download a segment before giving up. This is a suggested default, callers can supply their own value if needed.
- SEGMENT_
DOWNLOAD_ RETRY_ DELAY - The amount of time we wait between segment download retries. This is a suggested default, callers can supply their own value if needed.
Functions§
- download_
segment - Concurrently downloads the pieces for
segment_index
, and reconstructs the segment. - download_
segment_ pieces - Downloads pieces of a segment so that segment can be reconstructed afterward. Repeatedly attempts to download pieces until the required number of pieces is reached.