Deduplicate HTLC preimage events from channelmonitor.
authorMatt Corallo <git@bluematt.me>
Thu, 19 Mar 2020 22:16:07 +0000 (18:16 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 19 Mar 2020 23:21:36 +0000 (19:21 -0400)
commit82d40eefb2e6887c6667d1672bfe1e078936dad8
tree6236b2d23432f3651a8dd12bf583bad9fc2b1964
parent32d62ada96faab954bbcee4fc5d9ec58d2eff482
Deduplicate HTLC preimage events from channelmonitor.

This avoids calling get_update_fulfill_htlc_and_commit twice for
the same HTLC if we have to rescan a block.
lightning/src/ln/channel.rs
lightning/src/ln/channelmonitor.rs