async fn obtain_block(ledger: &Canister<'_>, block: BlockHeight) -> Transaction {
    let BlockRes(result) = ledger
        .query_("block_pb", protobuf, BlockArg(block))
        .await
        .unwrap();

    let block = result
        .unwrap()
        .unwrap()
        .decode()
        .expect("unable to decode block");

    block.transaction
}
/// Given a block height, obtain the corresponding block from
/// the ledger and compare its contents with expectations.
Given a block height, obtain the corresponding block from
the ledger and compare its contents with expectations.
Given a block height obtain the corresponding block from the ledger and compare its contents with expectations .
async fn obtain_block(ledger: &Canister<'_>, block: BlockHeight) -> Transaction {
    let BlockRes(result) = ledger
        .query_("block_pb", protobuf, BlockArg(block))
        .await
        .unwrap();
    let block = result
        .unwrap()
        .unwrap()
        .decode()
        .expect("unable to decode block");
    block.transaction
}
async fn obtain_block ( ledger : & Canister < ' _ > , block : BlockHeight ) -> Transaction { let BlockRes ( result ) = ledger . query_ ( " " , protobuf , BlockArg ( block ) ) . await . unwrap ( ) ; let block = result . unwrap ( ) . unwrap ( ) . decode ( ) . expect ( " " ) ; block . transaction }
Given a block height, obtain the corresponding block from
the ledger and compare its contents with expectations.
Given a block height obtain the corresponding block from the ledger and compare its contents with expectations .
ledger
&Canister<'_>
block
BlockHeight
ledger
&Canister<'_>
block
BlockHeight