-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to LDK 0.0.117 #118
Conversation
28237ee
to
75e4182
Compare
src/main.rs
Outdated
@@ -979,7 +1014,7 @@ async fn start_ldk() { | |||
peer_manager.disconnect_all_peers(); | |||
|
|||
if let Err(e) = bg_res { | |||
let persist_res = persister.persist("manager", &*channel_manager).unwrap(); | |||
let persist_res = persister.write("", "", "manager", &channel_manager.encode()).unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use all them (sub-)namespace constants as we're exporting them for this purpose: https://docs.rs/lightning/0.0.117-alpha1/lightning/util/persist/index.html#constants
Also, let's introduce analog constants for the locally persisted data, e.g., for the outbound payments, spendable outputs, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you want for the locally persisted data - do we really need to add a ton of consts for the repeated ""
s? We already have consts for the keys (are you just suggesting renaming those?).
c7d4f85
to
5713d6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't build in current form, needs fix.
Thanks! Updated to LDK 0.0.117-final, should be good to land now. |
Since we now have a `Persist`er which is separate from our `FilesystemStore`, its useful to use different names to differentiate the two.
b324bdf
to
88bd0ca
Compare
No description provided.