]> git.bitcoin.ninja Git - rust-lightning/commit
Avoid ref to a `Vec` when accessing custom onion TLVs
authorMatt Corallo <git@bluematt.me>
Fri, 22 Sep 2023 01:44:57 +0000 (01:44 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 1 Oct 2023 00:05:01 +0000 (00:05 +0000)
commit095fca9293536e97538b5c157452f7453b9fcc9c
treeb7b0ee40e6e8362d4c9d442974a394c4498fd149
parent087c8f683a5816d738ac68784b62226f255a7471
Avoid ref to a `Vec` when accessing custom onion TLVs

The bindings can't easily return a reference to a `Vec`, so we
instead split the implementation into vec/slice depending on the
`c_bindings` flag.
lightning/src/ln/outbound_payment.rs
lightning/src/ln/payment_tests.rs