]> git.bitcoin.ninja Git - rust-lightning/commit
Store Broadcaster and FeeEstimator on MonitorUpdatingPersister.
authorArik Sosman <git@arik.io>
Wed, 28 Aug 2024 16:32:35 +0000 (09:32 -0700)
committerArik Sosman <git@arik.io>
Wed, 28 Aug 2024 19:19:38 +0000 (12:19 -0700)
commit61197390d60b0190ed0d60e81ea5da70bd79322d
treedd182d1c17258747df4ef630fa316f746b0c5428
parent0d7ae8616b8a0cba7144bc91a4b0634e235d049b
Store Broadcaster and FeeEstimator on MonitorUpdatingPersister.

`MonitorUpdatingPersister` does not currently correctly archive
monitors because it neglects any unapplied updates. In order to start
applying these updates, the archiving methods will require access to
instances of `BroadcasterInterface` and `FeeEstimator`.

This commit requires that the `MonitorUpdatingPersister` be
instantiated with those instances, obviating the need for passing
them around, and laying the foundation for the following commit.
lightning/src/util/persist.rs