Skip to main content

check_transactions_size

Function check_transactions_size 

Source
fn check_transactions_size(
    parsed: usize,
    bytes: u64,
) -> Result<(), SerializationError>
Expand description

Returns an error if the first parsed transactions of a message, which take up bytes bytes, average fewer bytes than the smallest valid transaction. The block decoder has the same rule for a block’s transactions.