Function tari_wallet_ffi::wallet_test_complete_sent_transaction[][src]

#[no_mangle]pub unsafe extern "C" fn wallet_test_complete_sent_transaction(
    wallet: *mut TariWallet,
    tx: *mut TariPendingOutboundTransaction,
    error_out: *mut c_int
) -> bool

This function simulates a receiver accepting and replying to a TariPendingOutboundTransaction. This results in that transaction being "completed" and it's status set to Broadcast which indicated it is in a base_layer mempool.

Arguments

wallet - The TariWallet pointer tx - The TariPendingOutboundTransaction error_out - Pointer to an int which will be modified to an error code should one occur, may not be null. Functions as an out parameter.

Returns

bool - Returns if successful or not

Safety

None