X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Frouting%2Frouter.rs;fp=lightning%2Fsrc%2Frouting%2Frouter.rs;h=d7cd6b43fab6f5a8635970abd48dd688a1c7ad6b;hb=562f472cc2a816862d3e8339f05c7cd4ed4c09ec;hp=9682503ee45c22d5062a099f5c1af015bbe3ffc0;hpb=af76face12e924132596479f8b54849b14414f84;p=rust-lightning diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 9682503e..d7cd6b43 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -168,6 +168,8 @@ impl InFlightHtlcs { pub fn new() -> Self { InFlightHtlcs(HashMap::new()) } /// Takes in a path with payer's node id and adds the path's details to `InFlightHtlcs`. + /// + /// (C-not exported) as slices require memory layouts we cannot capture in bindings pub fn process_path(&mut self, path: &[RouteHop], payer_node_id: PublicKey) { if path.is_empty() { return }; // total_inflight_map needs to be direction-sensitive when keeping track of the HTLC value