Skip to content

ResponseLoadSnapshotChunk

JaapWijnen edited this page May 4, 2021 · 3 revisions

ResponseLoadSnapshotChunk

Used during state sync to retrieve snapshot chunks from peers.

public struct ResponseLoadSnapshotChunk 

Initializers

init(chunk:)

Used during state sync to retrieve snapshot chunks from peers.

public init(chunk: Data = Data()) 

Parameters

  • chunk: The binary chunk contents, in an arbitray format. Chunk messages cannot be larger than 16 MB including metadata, so 10 MB is a good starting point.

Properties

chunk

The binary chunk contents, in an arbitray format. Chunk messages cannot be larger than 16 MB including metadata, so 10 MB is a good starting point.

public let chunk: Data
Clone this wiki locally