]> git.bitcoin.ninja Git - rust-lightning/commit
Stop cleaning monitor updates on new block connect
authorGursharan Singh <3442979+G8XSU@users.noreply.github.com>
Fri, 8 Dec 2023 19:28:19 +0000 (11:28 -0800)
committerGursharan Singh <3442979+G8XSU@users.noreply.github.com>
Thu, 14 Dec 2023 18:29:12 +0000 (10:29 -0800)
commitef0909627dfafb59d08722f0e37bc8660bd6d983
treec0e84ae6745623551e0a92cd3672960ee34b06e9
parentc2bbfffb1eb249c2c422cf2e9ccac97a34275f7a
Stop cleaning monitor updates on new block connect

Previously, we used to cleanup monitor updates at both consolidation
threshold and new block connects. With this change we will only
cleanup when our consolidation criteria is met. Also, we remove
monitor read from cleanup logic, in case of update consolidation.
Note: In case of channel-closing monitor update, we still need to
read the old monitor before persisting the new one in order to
determine the cleanup range.
lightning/src/util/persist.rs