Switch from slice to slice-of-refs for spend_spendable_outputs
authorMatt Corallo <git@bluematt.me>
Fri, 19 Feb 2021 18:08:54 +0000 (13:08 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 19 Feb 2021 18:58:05 +0000 (13:58 -0500)
commit2f06b53abf602056936d5937d99eca45226a52e2
tree993834142a98fc5fc9b3c5e34bae5a1ebe407c9d
parentde58bcf27125a0269c62606ded161d57c016fe6e
Switch from slice to slice-of-refs for spend_spendable_outputs

Sadly, there's just not really a practical way to map a slice of
objects in our current bindings infrastructure - either we take
ownership of the underlying objects and move them into a Vec, or we
need to leave the original objects in place and have a list of
pointers to the Rust objects. Thus, the only practical mapping is
to create a slice of references using the pointers we have.
lightning/src/chain/keysinterface.rs
lightning/src/ln/functional_tests.rs