Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions libwallet/src/internal/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ where
}

/// Apply advanced filtering to resultset from retrieve_txs below
pub fn apply_advanced_tx_list_filtering<C, K>(
fn apply_advanced_tx_list_filtering<C, K>(
wallet: &mut WalletBackend<C, K>,
parent_key_id: Option<&Identifier>,
query_args: &RetrieveTxQueryArgs,
Expand Down Expand Up @@ -417,8 +417,12 @@ where
Ok(())
}

/// build a local map of wallet outputs keyed by commit
/// and a list of outputs we want to query the node for
/// Build a local map of wallet outputs keyed by commit
Comment thread
ardocrat marked this conversation as resolved.
Outdated
/// and a list of outputs we want to query the node for.
/// If `update_all` equals `false` we will select outputs
/// that are actually involved in an outstanding transaction.
/// Returns mapping of output commit to tuple of derived key for output,
/// PMMR index, tx entry log identifier and check if output is unspent
pub fn map_wallet_outputs<C, K>(
wallet: &mut WalletBackend<C, K>,
keychain_mask: Option<&SecretKey>,
Expand Down Expand Up @@ -505,7 +509,7 @@ where
}

/// Apply refreshed API output data to the wallet
pub fn apply_api_outputs<C, K>(
fn apply_api_outputs<C, K>(
wallet: &mut WalletBackend<C, K>,
keychain_mask: Option<&SecretKey>,
wallet_outputs: &HashMap<pedersen::Commitment, (Identifier, Option<u64>, Option<u32>, bool)>,
Expand Down Expand Up @@ -876,7 +880,7 @@ where

//TODO: Split up the output creation and the wallet insertion
/// Build a coinbase output and the corresponding kernel
pub fn receive_coinbase<C, K>(
fn receive_coinbase<C, K>(
wallet: &mut WalletBackend<C, K>,
keychain_mask: Option<&SecretKey>,
block_fees: &BlockFees,
Expand Down
3 changes: 3 additions & 0 deletions libwallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ pub use api_impl::types::{
};
pub use backend::{WalletBackend, WalletBatch};
pub use internal::scan::scan;
pub use internal::updater::{
map_wallet_outputs, refresh_outputs, retrieve_info, retrieve_outputs, retrieve_txs,
Comment thread
ardocrat marked this conversation as resolved.
};
pub use slate_versions::ser as dalek_ser;
pub use types::{
AcctPathMapping, BlockIdentifier, CbData, Context, NodeClient, NodeVersionInfo, OutputData,
Expand Down