fn put_single_block_body_v2(
        &self,
        tx: &mut RwTransaction,
        block_body: &BlockBody,
    ) -> Result<bool, LmdbExtError> {
        let merkle_block_body = block_body.merklize();
        let MerkleBlockBody {
            deploy_hashes,
            transfer_hashes,
            proposer,
        } = &merkle_block_body;
        if !self.put_merkle_block_body_part(tx, self.deploy_hashes_db, deploy_hashes)? {
            return Ok(false);
        };
        if !self.put_merkle_block_body_part(tx, self.transfer_hashes_db, transfer_hashes)? {
            return Ok(false);
        };
        if !self.put_merkle_block_body_part(tx, self.proposer_db, proposer)? {
            return Ok(false);
        };
        Ok(true)
    }
/// Writes a single merklized block body in a separate transaction to storage.
Writes a single merklized block body in a separate transaction to storage.
Writes a single merklized block body in a separate transaction to storage .
fn put_single_block_body_v2(
        &self,
        tx: &mut RwTransaction,
        block_body: &BlockBody,
    ) -> Result<bool, LmdbExtError> {
        let merkle_block_body = block_body.merklize();
        let MerkleBlockBody {
            deploy_hashes,
            transfer_hashes,
            proposer,
        } = &merkle_block_body;
        if !self.put_merkle_block_body_part(tx, self.deploy_hashes_db, deploy_hashes)? {
            return Ok(false);
        };
        if !self.put_merkle_block_body_part(tx, self.transfer_hashes_db, transfer_hashes)? {
            return Ok(false);
        };
        if !self.put_merkle_block_body_part(tx, self.proposer_db, proposer)? {
            return Ok(false);
        };
        Ok(true)
    }
fn put_single_block_body_v2 ( & self , tx : & mut RwTransaction , block_body : & BlockBody , ) -> Result < bool , LmdbExtError > { let merkle_block_body = block_body . merklize ( ) ; let MerkleBlockBody { deploy_hashes , transfer_hashes , proposer , } = & merkle_block_body ; if ! self . put_merkle_block_body_part ( tx , self . deploy_hashes_db , deploy_hashes ) ? { return Ok ( false ) ; } ; if ! self . put_merkle_block_body_part ( tx , self . transfer_hashes_db , transfer_hashes ) ? { return Ok ( false ) ; } ; if ! self . put_merkle_block_body_part ( tx , self . proposer_db , proposer ) ? { return Ok ( false ) ; } ; Ok ( true ) }
Writes a single merklized block body in a separate transaction to storage.
Writes a single merklized block body in a separate transaction to storage .
&self
tx
&mut RwTransaction
block_body
&BlockBody
&self
tx
&mut RwTransaction
block_body
&BlockBody