Make payment_path_failed path type bindings-mappable
authorMatt Corallo <git@bluematt.me>
Sun, 31 Oct 2021 18:21:46 +0000 (18:21 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 2 Nov 2021 20:50:42 +0000 (20:50 +0000)
commit51d146c56641b42ae1b1c3d89a2d3ce5033f5578
tree82b7ad4220b3670d1907f40e5fc35853106d4aa8
parent2ec427f1486684db31eeb01671fa36a78404bab3
Make payment_path_failed path type bindings-mappable

The bindings don't currently support passing `Vec`s of objects
which it mappes as "opaque types". This is because it will require
clones to convert its own list of references to Rust's list of
objects.

In the near future we should resolve this limitation, allowing us
to revert this (and make `find_route`'s method signature similarly
cleaner), but for now we must avoid `Vec<OpaqueType>`.
lightning-invoice/src/payment.rs
lightning/src/routing/mod.rs
lightning/src/routing/router.rs
lightning/src/routing/scorer.rs