Skip to main content

Module record

Module record 

Source
Expand description

One archive record is one received validation.

Record layout, all integers little-endian:

u32  length of the rest of the record (12 + length of the original)
u64  time the archiver received it, ms since the Unix epoch
u32  ledger index, for navigation without parsing the original
...  original: the raw signed validation (the stream's `data` field)

The leading length lets crash recovery tell a complete record from one cut off halfway.

Structs§

Record

Constants§

MAX_DATA_LEN
A validation whose original is this large is certainly garbage. Real ones are about 233 bytes; with amendments and fees in the body, up to a couple hundred bytes more.