]> git.bitcoin.ninja Git - rust-lightning/commit
Persist full monitor if there is an error while applying monitor_update
authorGursharan Singh <3442979+G8XSU@users.noreply.github.com>
Fri, 29 Sep 2023 03:30:53 +0000 (20:30 -0700)
committerGursharan Singh <3442979+G8XSU@users.noreply.github.com>
Fri, 29 Sep 2023 23:26:40 +0000 (16:26 -0700)
commit5e6a0d5f3820d9c3edc3abf5639f8fb7c0592417
tree67ac42617428622b5a33eb1e7cbc73a25250c7e8
parent13eac47ed939fc44cffb5f7b25bbbf4684ae8fde
Persist full monitor if there is an error while applying monitor_update

Motivation: When there is an error while applying monitor_update to a
channel_monitor,  we don't want to persist a 'monitor_update' which
results in a failure to apply later while reading 'channel_monitor' with
updates from storage. Instead, we should persist the entire 'channel_monitor'
here.
lightning/src/chain/chainmonitor.rs