Constant MAX_CHUNK_SIZE

Source
pub(crate) const MAX_CHUNK_SIZE: u32 = 390_000;
Expand description

Maximum raw BatchProof chunk size.

This is intentionally below the 400,000 WU standard transaction limit. The raw chunk is Borsh-wrapped and then pushed into a tapscript in 520-byte pieces, so the final reveal transaction is larger than the raw chunk bytes. see test max_chunk_reveal_transaction_stays_under_standard_weight