]> git.bitcoin.ninja Git - rust-lightning/commit
Flatten Vec passed from channelmonitor to onchaintx block_connected
authorMatt Corallo <git@bluematt.me>
Wed, 4 Mar 2020 22:27:03 +0000 (17:27 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 4 Mar 2020 22:57:22 +0000 (17:57 -0500)
commit4c3533d017fdcb8754c23facb864001485ba7672
tree2856e47566b48e9435f3ea4fca51b22d876d66a2
parent48549de955eaddf4eae7cba7d6e0e45cc2dd4947
Flatten Vec passed from channelmonitor to onchaintx block_connected

Instead of passing a Vec of Vecs drop them into one as we go in
ChannelMonitor, hopefully avoiding a bit of memory fragmentation
and improving readability.
lightning/src/ln/channelmonitor.rs
lightning/src/ln/onchaintx.rs