Expose ReadOnlyNetworkGraph::get_addresses to C by cloning result 2021-10-expose-addr-vec
authorMatt Corallo <git@bluematt.me>
Mon, 11 Oct 2021 23:46:51 +0000 (23:46 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 13 Oct 2021 01:18:43 +0000 (01:18 +0000)
commitd2b7f6cc08fc517d620c7de6592b3ddc188f8f96
treed4315399a2b968a70c76f82299c0ac101a20f688
parentd66574803e08c65db0e5cec66a3ac7ba5a68bf4f
Expose ReadOnlyNetworkGraph::get_addresses to C by cloning result

We cannot expose ReadOnlyNetworkGraph::get_addresses as is in C as
it returns a list of references to an enum, which the bindings
dont support. Instead, we simply clone the result so that it
doesn't contain references.
lightning/src/routing/network_graph.rs