Function tari_wallet_ffi::wallet_sync_with_base_node [−][src]
#[no_mangle]pub unsafe extern "C" fn wallet_sync_with_base_node(
wallet: *mut TariWallet,
error_out: *mut c_int
) -> c_ulonglong
This function will tell the wallet to query the set base node to confirm the status of wallet data. For example this will check that Unspent Outputs stored in the wallet are still available as UTXO's on the blockchain. This will also trigger a request for outstanding SAF messages to you neighbours
Arguments
wallet
- The TariWallet pointer
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
c_ulonglong
- Returns a unique Request Key that is used to identify which callbacks refer to this specific sync
request. Note the result will be 0 if there was an error
Safety
None