//! This module defines the trait that is used to build batches of transactions.
/// BlockBuilder trait is responsible for managing mempool and building batches.
pubtraitBatchBuilder{/// Accept a new transaction.
/// Can return error if transaction is invalid or mempool is full.
fnaccept_tx(&mutself, tx:Vec<u8>)->anyhow::Result<()>;/// Builds a new batch out of transactions in mempool.
/// Logic of which transactions and how many of them is included in batch is up to implementation.
fnget_next_blob(&mutself)->anyhow::Result<Vec<Vec<u8>>>;}