From: Matt Corallo Date: Mon, 6 Mar 2023 02:46:45 +0000 (+0000) Subject: Mark `InFlightHtlcs::process_path` not exported due to object slice X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=31ea7a51128e5b9bba5808b91d9dd1950b0b5f48;p=rust-lightning Mark `InFlightHtlcs::process_path` not exported due to object slice --- diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 9682503ee..d7cd6b43f 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