fn example_block() -> Block {
    let transaction = Transaction::new(
        AccountIdentifier::new(CanisterId::from_u64(1).get(), None),
        AccountIdentifier::new(CanisterId::from_u64(2).get(), None),
        Tokens::new(10000, 50).unwrap(),
        TRANSACTION_FEE,
        Memo(456),
        TimeStamp::new(2_000_000_000, 123_456_789),
    );
    Block::new_from_transaction(None, transaction, TimeStamp::new(1, 1))
}
// So we can get the size of EncodedBlock
So we can get the size of EncodedBlock
So we can get the size of EncodedBlock
fn example_block() -> Block {
    let transaction = Transaction::new(
        AccountIdentifier::new(CanisterId::from_u64(1).get(), None),
        AccountIdentifier::new(CanisterId::from_u64(2).get(), None),
        Tokens::new(10000, 50).unwrap(),
        TRANSACTION_FEE,
        Memo(456),
        TimeStamp::new(2_000_000_000, 123_456_789),
    );
    Block::new_from_transaction(None, transaction, TimeStamp::new(1, 1))
}
fn example_block ( ) -> Block { let transaction = Transaction :: new ( AccountIdentifier :: new ( CanisterId :: from_u64 ( 1 ) . get ( ) , None ) , AccountIdentifier :: new ( CanisterId :: from_u64 ( 2 ) . get ( ) , None ) , Tokens :: new ( 10000 , 50 ) . unwrap ( ) , TRANSACTION_FEE , Memo ( 456 ) , TimeStamp :: new ( 2_000_000_000 , 123_456_789 ) , ) ; Block :: new_from_transaction ( None , transaction , TimeStamp :: new ( 1 , 1 ) ) }
So we can get the size of EncodedBlock
So we can get the size of EncodedBlock