Add NetworkGraph persistence
authorJurvis Tan <5944973+jurvis@users.noreply.github.com>
Tue, 22 Mar 2022 03:13:14 +0000 (20:13 -0700)
committerJurvis Tan <5944973+jurvis@users.noreply.github.com>
Wed, 30 Mar 2022 02:38:40 +0000 (19:38 -0700)
commitafb7aa85cfe9a361f4e702d3543ac07c5493f992
tree24d4f042f964c5877fe169f21c6244cc0e684461
parentc244c781f63618c4241324b460e6a6d77f525e73
Add NetworkGraph persistence

Instead of creating a separate trait for persisting NetworkGraph, use and rename the existing ChannelManagerPersister to handle them both. persist_graph is then called on removal of stale channels and on exit.
lightning-background-processor/src/lib.rs
lightning-persister/src/lib.rs