async fn seal_pending_block(&mut self) {
        let pending_block = std::mem::replace(
            &mut self.pending_block,
            PendingBlock::new(
                self.current_unprocessed_priority_op,
                *self
                    .available_block_chunk_sizes
                    .last()
                    .expect("failed to get max block size"),
            ),
        );

        let mut block_transactions = pending_block.success_operations;
        block_transactions.extend(
            pending_block
                .failed_txs
                .into_iter()
                .map(|tx| ExecutedOperations::Tx(Box::new(tx))),
        );

        let commit_gas_limit = pending_block.gas_counter.commit_gas_limit();
        let verify_gas_limit = pending_block.gas_counter.verify_gas_limit();

        let block_commit_request = BlockCommitRequest {
            block: Block::new_from_availabe_block_sizes(
                self.state.block_number,
                self.state.root_hash(),
                self.fee_account_id,
                block_transactions,
                (
                    pending_block.unprocessed_priority_op_before,
                    self.current_unprocessed_priority_op,
                ),
                &self.available_block_chunk_sizes,
                commit_gas_limit,
                verify_gas_limit,
            ),
            accounts_updated: pending_block.account_updates,
        };
        self.state.block_number += 1;

        info!(
            "Creating full block: {}, operations: {}, chunks_left: {}, miniblock iterations: {}",
            block_commit_request.block.block_number,
            block_commit_request.block.block_transactions.len(),
            pending_block.chunks_left,
            pending_block.pending_block_iteration
        );

        let (notification_sender, notification_receiver) = oneshot::channel::<()>();

        let commit_request = CommitRequest::Block(block_commit_request, notification_sender);
        self.tx_for_commitments
            .send(commit_request)
            .await
            .expect("committer receiver dropped");

        notification_receiver
            .await
            .expect("committer sender dropped");
    }
/// Finalizes the pending block, transforming it into a full block.
Finalizes the pending block, transforming it into a full block.
Finalizes the pending block transforming it into a full block .
async fn seal_pending_block(&mut self) {
        let pending_block = std::mem::replace(
            &mut self.pending_block,
            PendingBlock::new(
                self.current_unprocessed_priority_op,
                *self
                    .available_block_chunk_sizes
                    .last()
                    .expect("failed to get max block size"),
            ),
        );
        let mut block_transactions = pending_block.success_operations;
        block_transactions.extend(
            pending_block
                .failed_txs
                .into_iter()
                .map(|tx| ExecutedOperations::Tx(Box::new(tx))),
        );
        let commit_gas_limit = pending_block.gas_counter.commit_gas_limit();
        let verify_gas_limit = pending_block.gas_counter.verify_gas_limit();
        let block_commit_request = BlockCommitRequest {
            block: Block::new_from_availabe_block_sizes(
                self.state.block_number,
                self.state.root_hash(),
                self.fee_account_id,
                block_transactions,
                (
                    pending_block.unprocessed_priority_op_before,
                    self.current_unprocessed_priority_op,
                ),
                &self.available_block_chunk_sizes,
                commit_gas_limit,
                verify_gas_limit,
            ),
            accounts_updated: pending_block.account_updates,
        };
        self.state.block_number += 1;
        info!(
            "Creating full block: {}, operations: {}, chunks_left: {}, miniblock iterations: {}",
            block_commit_request.block.block_number,
            block_commit_request.block.block_transactions.len(),
            pending_block.chunks_left,
            pending_block.pending_block_iteration
        );
        let (notification_sender, notification_receiver) = oneshot::channel::<()>();
        let commit_request = CommitRequest::Block(block_commit_request, notification_sender);
        self.tx_for_commitments
            .send(commit_request)
            .await
            .expect("committer receiver dropped");
        notification_receiver
            .await
            .expect("committer sender dropped");
    }
async fn seal_pending_block ( & mut self ) { let pending_block = std :: mem :: replace ( & mut self . pending_block , PendingBlock :: new ( self . current_unprocessed_priority_op , * self . available_block_chunk_sizes . last ( ) . expect ( " " ) , ) , ) ; let mut block_transactions = pending_block . success_operations ; block_transactions . extend ( pending_block . failed_txs . into_iter ( ) . map ( | tx | ExecutedOperations :: Tx ( Box :: new ( tx ) ) ) , ) ; let commit_gas_limit = pending_block . gas_counter . commit_gas_limit ( ) ; let verify_gas_limit = pending_block . gas_counter . verify_gas_limit ( ) ; let block_commit_request = BlockCommitRequest { block : Block :: new_from_availabe_block_sizes ( self . state . block_number , self . state . root_hash ( ) , self . fee_account_id , block_transactions , ( pending_block . unprocessed_priority_op_before , self . current_unprocessed_priority_op , ) , & self . available_block_chunk_sizes , commit_gas_limit , verify_gas_limit , ) , accounts_updated : pending_block . account_updates , } ; self . state . block_number += 1 ; info ! ( " " block_commit_request block block_number block_commit_request block block_transactions len ( ) pending_block chunks_left pending_block pending_block_iteration ) ; let ( notification_sender , notification_receiver ) = oneshot :: channel :: < ( ) > ( ) ; let commit_request = CommitRequest :: Block ( block_commit_request , notification_sender ) ; self . tx_for_commitments . send ( commit_request ) . await . expect ( " " ) ; notification_receiver . await . expect ( " " ) ; }
Finalizes the pending block, transforming it into a full block.
Finalizes the pending block transforming it into a full block .
&mut self