]> git.bitcoin.ninja Git - rust-lightning/commit
Return ChannelMonitors in a Vec, not HashMap when loading from disk
authorMatt Corallo <git@bluematt.me>
Mon, 12 Apr 2021 17:48:29 +0000 (13:48 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 12 Apr 2021 22:35:24 +0000 (18:35 -0400)
commit6b2e179bc1fef2f91f84cdce883752162ec41466
tree51fd806fcf673b81438757c481a5f6def81facd5
parent0a11eb19ab8922dae6a827192d65661265d516e4
Return ChannelMonitors in a Vec, not HashMap when loading from disk

There's little reason for the HashMap - the ChannelMonitors are
already unique (enforced by file names), and the eventual HashMap
that users need when deserializing the `ChannelManager` is a
slightly different form (it requires no BlockHash entry).
lightning-persister/src/lib.rs