fn transfer_to_account_multiple_native_transfers(
    builder: &mut LmdbWasmTestBuilder,
    execute_requests: &[ExecuteRequest],
) {
    for exec_request in execute_requests {
        let request = ExecuteRequest::new(
            exec_request.parent_state_hash,
            exec_request.block_time,
            exec_request.deploys.clone(),
            exec_request.protocol_version,
            exec_request.proposer.clone(),
        );
        let builder = builder.exec(request).expect_success(); // flush to disk only after entire set
        builder.commit();
    }
    builder.flush_environment();
}
/// This test simulates flushing at the end of a block.
This test simulates flushing at the end of a block.
This test simulates flushing at the end of a block .
fn transfer_to_account_multiple_native_transfers(
    builder: &mut LmdbWasmTestBuilder,
    execute_requests: &[ExecuteRequest],
) {
    for exec_request in execute_requests {
        let request = ExecuteRequest::new(
            exec_request.parent_state_hash,
            exec_request.block_time,
            exec_request.deploys.clone(),
            exec_request.protocol_version,
            exec_request.proposer.clone(),
        );
        let builder = builder.exec(request).expect_success(); // flush to disk only after entire set
        builder.commit();
    }
    builder.flush_environment();
}
fn transfer_to_account_multiple_native_transfers ( builder : & mut LmdbWasmTestBuilder , execute_requests : & [ ExecuteRequest ] , ) { for exec_request in execute_requests { let request = ExecuteRequest :: new ( exec_request . parent_state_hash , exec_request . block_time , exec_request . deploys . clone ( ) , exec_request . protocol_version , exec_request . proposer . clone ( ) , ) ; let builder = builder . exec ( request ) . expect_success ( ) ; // flush to disk only after entire set builder . commit ( ) ; } builder . flush_environment ( ) ; }
This test simulates flushing at the end of a block.
This test simulates flushing at the end of a block .
builder
&mut LmdbWasmTestBuilder
execute_requests
&[ExecuteRequest]
builder
&mut LmdbWasmTestBuilder
execute_requests
&[ExecuteRequest]