]> git.bitcoin.ninja Git - rust-lightning/commit
Fix AwaitingRAA on RAA receipt when monitor updating had failed
authorMatt Corallo <git@bluematt.me>
Fri, 11 Jan 2019 18:08:56 +0000 (13:08 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 23 Jan 2019 22:43:45 +0000 (17:43 -0500)
commit985688852bae4ea51a2bcf0d33d34d99c19f639d
treee8147b162d31ef6cc991ac920d56c2f9d6e741bc
parente79b98ddda6b2f8e02180804bc4d72ff7d7eca7f
Fix AwaitingRAA on RAA receipt when monitor updating had failed

This fixes a rather subtle case handling RAAs when we don't
generate a response due to a previous monitor update failure, but
would otherwise send a CS response. We need to still set
AwaitingRemoteRevoke on the channl in question, but previously did
not. Found by chanmon_fail_consistency fuzz test with the failing
test converted and added manually.
src/ln/chanmon_update_fail_tests.rs
src/ln/channel.rs