pub const PAGE_BUDGET: usize = _ /* 114_688usize */;Expand description
Plaintext budget for the ops in one page. The sealed body is hex in the envelope (two
bytes per plaintext byte), and weirdnet-net 0.8 sends the encoded envelope as one CBOR
byte string (one byte per byte, a few bytes of header). So a page is about twice its
plaintext on the wire, plus the envelope fields. This reserves 16 KiB for those and for
the gap between LogEntry::wire_size and the real
encoding (which is an estimate), then halves the rest: a full page is about 120 KiB
plus slack under PAGE_MAX. (Through 0.4 this was a quarter, because 0.7 sent the
bytes as integer arrays.)