Skip to content
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

Merged
merged 5 commits into from
Oct 16, 2023
Merged

Upgrade to LDK 0.0.117 #118

merged 5 commits into from
Oct 16, 2023

Conversation

TheBlueMatt
Copy link
Contributor

No description provided.

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();
Copy link
Contributor

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.

Copy link
Contributor Author

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?).

Copy link
Contributor

@optout21 optout21 left a 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.

src/main.rs Outdated Show resolved Hide resolved
@TheBlueMatt
Copy link
Contributor Author

Thanks! Updated to LDK 0.0.117-final, should be good to land now.

@tnull tnull merged commit 878c70a into lightningdevkit:main Oct 16, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants