fn prepare_ingress_payload(now: Time, message_count: usize, seed: u8) -> IngressPayload {
    let mut ingress_msgs = Vec::new();
    let expiry = std::time::Duration::from_secs(MAX_INGRESS_TTL.as_secs() - 1);
    for i in 0..message_count {
        let ingress = SignedIngressBuilder::new()
            .method_name("provisional_create_canister_with_cycles")
            .method_payload(vec![seed; INGRESS_MESSAGE_SIZE])
            .nonce(i as u64)
            .expiry_time(now + expiry)
            .canister_id(IC_00)
            .build();
        ingress_msgs.push(ingress);
    }
    IngressPayload::from(ingress_msgs)
}
/// Prepares the ingress payload which has 1K x specified number of
/// SignedIngress messages. The payload is filled with the specified 'seed'
/// bytes
Prepares the ingress payload which has 1K x specified number of
SignedIngress messages. The payload is filled with the specified 'seed'
bytes
Prepares the ingress payload which has 1K x specified number of SignedIngress messages . The payload is filled with the specified ' seed ' bytes
fn prepare_ingress_payload(now: Time, message_count: usize, seed: u8) -> IngressPayload {
    let mut ingress_msgs = Vec::new();
    let expiry = std::time::Duration::from_secs(MAX_INGRESS_TTL.as_secs() - 1);
    for i in 0..message_count {
        let ingress = SignedIngressBuilder::new()
            .method_name("provisional_create_canister_with_cycles")
            .method_payload(vec![seed; INGRESS_MESSAGE_SIZE])
            .nonce(i as u64)
            .expiry_time(now + expiry)
            .canister_id(IC_00)
            .build();
        ingress_msgs.push(ingress);
    }
    IngressPayload::from(ingress_msgs)
}
fn prepare_ingress_payload ( now : Time , message_count : usize , seed : u8 ) -> IngressPayload { let mut ingress_msgs = Vec :: new ( ) ; let expiry = std :: time :: Duration :: from_secs ( MAX_INGRESS_TTL . as_secs ( ) - 1 ) ; for i in 0 .. message_count { let ingress = SignedIngressBuilder :: new ( ) . method_name ( " " ) . method_payload ( vec ! [ seed INGRESS_MESSAGE_SIZE ] ) . nonce ( i as u64 ) . expiry_time ( now + expiry ) . canister_id ( IC_00 ) . build ( ) ; ingress_msgs . push ( ingress ) ; } IngressPayload :: from ( ingress_msgs ) }
Prepares the ingress payload which has 1K x specified number of
SignedIngress messages.
Prepares the ingress payload which has 1K x specified number of SignedIngress messages .
now
Time
message_count
usize
seed
u8
now
Time
message_count
usize
seed
u8