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.125 #136

Merged
merged 5 commits into from
Oct 28, 2024
Merged

Upgrade to LDK 0.0.125 #136

merged 5 commits into from
Oct 28, 2024

Conversation

TheBlueMatt
Copy link
Contributor

No description provided.

Onion messages are now useful for various things so having a demo
use for them isn't all that interesting anymore.
Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

LGTM, although one question regarding dropping sendonionmessage:

Mh, so having this command available was a real easy way to start playing with onion messages. While we don't think of LDK sample as a production node, it at least used to be the defacto default way to get started quickly with LDK. I wonder if should reconsider doing lightningdevkit/ldk-node#121 if we drop this functionality here, really just to allow users to experiment with custom onion messages, do measurements, etc (know at least two (research) projects that did stuff like that based on forked LDK sample).

}
},
Event::FundingTxBroadcastSafe { .. } => {
// We don't use the manual broadcasting feature, so this event should never be seen.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we put an unreachable or at least a debug_assert here and in the cases below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, we hadn't previously done that. Its possible that in the future these events get used more broadly and I'd rather not forget to remove an assertion.

@TheBlueMatt
Copy link
Contributor Author

Re: custom onion message send, I'm pretty meh on it. If someone wants to use ldk-sample to do network measurements of onion messages they're gonna need both the send side and the receive side, which we hadn't implemented here. We generally have preferred to keep ldk-sample simple to demonstrate "what you need to get started", rather than showcase all the features people might use.

@TheBlueMatt
Copy link
Contributor Author

Also pushed a submitpackage replacement.

tx_serialized);
print!("Warning, failed to broadcast a transaction, this is likely okay but may indicate an error: {}\n> ", err_str);
}
// We assume `submitpackage` is available (Bitcoin Core 25, at least).
Copy link
Contributor

Choose a reason for hiding this comment

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

Mhh, isn't it only available in general starting with v26? And wouldn't this use of it not still require v28?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, maybe, I dunno I just checked my 25 node and it at least exists. Even if its just 26 seems fine to use it here? Indeed, until 28 it may not do anything, but it also shouldn't hurt. I'll update the comment at least.

Copy link
Contributor

Choose a reason for hiding this comment

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

Mh, well, would it actually work for broadcasting on mainnet, or is it a no-op until v0.28?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, it seems it will be usable just to broadcast starting with v26 (see https://bitcoincore.org/en/releases/26.0/). Good to know, might do that in lightningdevkit/ldk-node#370 from the getgo, too.

src/bitcoind_client.rs Outdated Show resolved Hide resolved
LDK has deprecated the `ChannelDetails` balance retrieval because
its generally not what users want. Instead, we use the
`ChainMonitor` `Balance` list.
@TheBlueMatt
Copy link
Contributor Author

Switched to LDK 0.0.125 instead.

@TheBlueMatt TheBlueMatt changed the title Upgrade to LDK 0.0.124 Upgrade to LDK 0.0.125 Oct 15, 2024
@tnull tnull merged commit 3676248 into lightningdevkit:main Oct 28, 2024
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.

2 participants