diff options
Diffstat (limited to 'src/swarm/blob.rs')
| -rw-r--r-- | src/swarm/blob.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/swarm/blob.rs b/src/swarm/blob.rs index 679e1c6..c13bcd9 100644 --- a/src/swarm/blob.rs +++ b/src/swarm/blob.rs @@ -88,6 +88,10 @@ pub(crate) struct Blobs { /// within Mycelium's deadline. const DELTA_THRESHOLD_CHUNKS: usize = 16; +/// The largest sync message accepted: the threshold of a sender with the largest chunks +/// it may have configured. Anything larger comes from a node that doesn't keep to it. +pub(crate) const MAX_SYNC_MESSAGE: usize = DELTA_THRESHOLD_CHUNKS * MAX_CHUNK as usize; + struct Prepared { bytes: Arc<Vec<u8>>, hashes: Vec<[u8; 32]>, |
