Make `get_outputs_to_watch` return a `Vec` instead of a `HashMap`
authorMatt Corallo <git@bluematt.me>
Sun, 7 Mar 2021 18:00:11 +0000 (13:00 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 8 Mar 2021 16:45:32 +0000 (11:45 -0500)
commit154dfe57555b154c1f399c2328196b2a5da69689
tree816faccfa60b60c0f6e1cf205ca29fc15a86b123
parent135cff1c954339c3a07d4ea7e970e440632fc5a9
Make `get_outputs_to_watch` return a `Vec` instead of a `HashMap`

`get_outputs_to_watch` returned a reference to an existing
`HashMap` avoiding extra clones, but there isn't a huge reason to
do so now that we have to clone to copy it out of the
`ChannelMonitor` mutex. Instead, return a `Vec` since it may be
less memory and it allows us to have a bindings C mapping for the
function.

Co-authored-by: Jeffrey Czyz <jkczyz@gmail.com>
Co-authored-by: Matt Corallo <git@bluematt.me>
lightning/src/chain/channelmonitor.rs