Skip to main content

MAX_DHT_FRAME

Constant MAX_DHT_FRAME 

Source
pub const MAX_DHT_FRAME: u32 = _ /* 65_536u32 */;
Expand description

Frame ceiling for cdn/dht/v1, in payload bytes (ADR 013 § Wire Framing).

Every DHT read passes this to crate::read_frame, for requests and responses alike. The largest legitimate message is a full BatchStoreRequest: MAX_BATCH_STORE_HASHES entries, each a 32-byte hash and a Coverage of up to 202 bytes, plus the holder — 59,939 bytes. The largest response is a full FindValueResponse at 12,375 bytes. The dht_frame_ceiling_holds_the_largest_message test pins the margin.