]> git.bitcoin.ninja Git - rust-lightning/commit
Add is_resolving_output in ChannelMonitor
authorAntoine Riard <ariard@student.42.fr>
Fri, 30 Nov 2018 16:06:02 +0000 (11:06 -0500)
committerAntoine Riard <ariard@student.42.fr>
Fri, 30 Nov 2018 16:14:18 +0000 (11:14 -0500)
commit43c4ffe3c7f7b23853091958d83eda802133b5af
tree7e9c43c27a9f1c2b4040ea725da4f42825bd9b01
parent6e1ccc7c0f5ec445f6e45201255cbd417182ad1c
Add is_resolving_output in ChannelMonitor

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

If spurrious htlc updates 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