]> git.bitcoin.ninja Git - rust-lightning/commit
Add is_resolving_output in ChannelMonitor
authorAntoine Riard <ariard@student.42.fr>
Tue, 11 Dec 2018 04:56:02 +0000 (23:56 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 13 Dec 2018 16:53:44 +0000 (11:53 -0500)
commit96d17ee7370af557330ccd8618648e82a6899ac0
treede4ea7d450c2280525d2f85f856504fbe302063c
parent3b7ef49ef6a3193f0a8a5202f2ac203ace5ebcf9
Add is_resolving_output in ChannelMonitor

Called in ChannelMonitor block_connected, returning
HTLCUpdate upstream via ManyChannelMonitor to
link htlcs between monitors. Used by ChannelManager to
fulfill/fail htlcs backwards accordingly

If spurrious HTLCUpdate are generated due to block re-scan
and htlc are already LocalRemoved, discard them in
channel get_update_*_htlc
src/ln/channel.rs
src/ln/channelmanager.rs
src/ln/channelmonitor.rs
src/util/test_utils.rs