]> git.bitcoin.ninja Git - rust-lightning/commit
Drop `MonitorUpdateErr` in favor of opaque errors.
authorMatt Corallo <git@bluematt.me>
Mon, 29 Nov 2021 21:36:12 +0000 (21:36 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 6 Dec 2021 18:39:37 +0000 (18:39 +0000)
commit87b687962237c3bfc596a0963b1ef2bc2e9ba6f7
tree7d8b7e56ef180fda003b0e4696cbd770651d87ca
parent25542b8157e95e362e097b73a366da3f8bfe962d
Drop `MonitorUpdateErr` in favor of opaque errors.

We don't expect users to ever change behavior based on the string
contained in a `MonitorUpdateErr`, except log it, so there's little
reason to not just log it ourselves and return a `()` for errors.

We do so here, simplifying the callsite in `ChainMonitor` as well.
lightning/src/chain/chainmonitor.rs
lightning/src/chain/channelmonitor.rs