]> git.bitcoin.ninja Git - rust-lightning/commit
Make `FinalOnionHopData` public
authorMatt Corallo <git@bluematt.me>
Fri, 15 Dec 2023 18:23:42 +0000 (18:23 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Dec 2023 22:31:51 +0000 (22:31 +0000)
commitbb0ddad00d98359fef93f4dc51f41bd2f9b5b4e8
tree3f7aedd6b8342ab1695d44e1992fc49a5cf7305f
parent83e76d78b721bf632e379b9a40840330b6b28e35
Make `FinalOnionHopData` public

In 4b5db8c3ce, `channelmanager::PendingHTLCRouting` was made
public, exposing a `FinalOnionHopData` field to the world. However,
`FinalOnionHopData` was left crate-private, making the enum
impossible to construct.

There isn't a strong reason for this (even though the
`FinalOnionHopData` API is somewhat confusing, being separated from
the rest of the onion structs), so we expose it here.
lightning/src/ln/msgs.rs