Skip to content

Commit

Permalink
Change scope
Browse files Browse the repository at this point in the history
  • Loading branch information
cndolo committed Feb 6, 2024
1 parent 5d363a4 commit a79410c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions simulator/src/payments/payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ use serde::Serialize;
pub struct Payment {
/// Unique payment identifier
pub(crate) payment_id: PaymentId,
pub(crate) source: ID,
pub(crate) dest: ID,
pub source: ID,
pub dest: ID,
/// Amount issued by this payment
pub(crate) amount_msat: usize,
pub(crate) succeeded: bool,
pub succeeded: bool,
pub(crate) min_shard_amt: usize,
/// Number of parts this payment has been split into
pub(crate) num_parts: usize,
/// Paths payment can take
/// unstable, might change
pub(crate) used_paths: Vec<CandidatePath>,
pub(crate) htlc_attempts: usize,
pub used_paths: Vec<CandidatePath>,
pub htlc_attempts: usize,
/// Payment amounts that have already succeed, used for MPP payments
pub(crate) failed_amounts: Vec<usize>,
pub(crate) successful_shards: Vec<(ID, String, usize)>,
Expand All @@ -41,7 +41,7 @@ pub struct PaymentShard {
}

impl Payment {
pub(crate) fn new(
pub fn new(
payment_id: PaymentId,
source: ID,
dest: ID,
Expand Down
2 changes: 1 addition & 1 deletion simulator/src/traversal/pathfinding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl Path {
}

/// Including src and dest
pub(crate) fn get_involved_nodes(&self) -> Vec<ID> {
pub fn get_involved_nodes(&self) -> Vec<ID> {
self.hops.iter().map(|h| h.0.clone()).collect()
}

Expand Down

0 comments on commit a79410c

Please sign in to comment.