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.119 #214

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented Dec 12, 2023

We upgrade LDK to 0.0.119, BDK to 0.29.0, and rust-bitcoin to 0.30, esplora-client to 0.6, etc.

@tnull tnull marked this pull request as draft December 12, 2023 10:52
@tnull tnull force-pushed the 2023-12-upgrade-to-ldk-0.0.119 branch from 608f53d to 59da31c Compare December 12, 2023 11:17
@tnull
Copy link
Collaborator Author

tnull commented Dec 12, 2023

Currently blocked as we need to figure out what to do about the Network type. We could just newtype it and go ahead, but maybe rust-bitcoin folks are willing to dropping the non_exhaustive and backporting it to 0.30, as it's really a one-line change that would spare us a bunch of churn and API breaks.

@tnull tnull force-pushed the 2023-12-upgrade-to-ldk-0.0.119 branch from 59da31c to e261ba9 Compare December 12, 2023 16:21
@tnull tnull force-pushed the 2023-12-upgrade-to-ldk-0.0.119 branch from e261ba9 to 8ac035a Compare December 18, 2023 11:55
@tnull tnull marked this pull request as ready for review December 18, 2023 11:57
@tnull tnull requested a review from jkczyz December 18, 2023 11:57
@tnull tnull force-pushed the 2023-12-upgrade-to-ldk-0.0.119 branch from 8ac035a to 06db0fb Compare December 18, 2023 13:21
Copy link
Contributor

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes related to onion message and offers PRs all seem fine. Since the OnionMessenger is configured to ignore all messages -- and we don't expose offer creation from ChannelManager -- the FakeMessageRouter should never be reached. Nor does the ConnectionNeeded event need to be handled yet as we'll never see one generated given the above configuration.

let locked_outputs = self.outputs.lock().unwrap();
locked_outputs
.iter()
.filter_map(|o| {
if let Some(confirmation_hash) = o.confirmation_hash {
if let Some(latest_spending_tx) = o.latest_spending_tx.as_ref() {
return Some((latest_spending_tx.txid(), Some(confirmation_hash)));
if let Some(confirmation_height) = o.confirmation_height {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is duplicated from the previous line.

Copy link
Collaborator Author

@tnull tnull Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mh, no, oneconfirmation_hash, the other is confirmation_height? Or am I misunderstanding what you're saying?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, no, I just misread it.

src/lib.rs Outdated Show resolved Hide resolved
@tnull tnull force-pushed the 2023-12-upgrade-to-ldk-0.0.119 branch from 06db0fb to c13fe2d Compare December 19, 2023 10:29
Copy link
Contributor

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Feel free to squash

let locked_outputs = self.outputs.lock().unwrap();
locked_outputs
.iter()
.filter_map(|o| {
if let Some(confirmation_hash) = o.confirmation_hash {
if let Some(latest_spending_tx) = o.latest_spending_tx.as_ref() {
return Some((latest_spending_tx.txid(), Some(confirmation_hash)));
if let Some(confirmation_height) = o.confirmation_height {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, no, I just misread it.

@tnull tnull force-pushed the 2023-12-upgrade-to-ldk-0.0.119 branch from c13fe2d to c9cd694 Compare December 19, 2023 16:53
@tnull
Copy link
Collaborator Author

tnull commented Dec 19, 2023

LGTM. Feel free to squash

Squashed without further changes.

@tnull tnull merged commit 2878217 into lightningdevkit:main Dec 19, 2023
5 of 13 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.

2 participants