-
Notifications
You must be signed in to change notification settings - Fork 23
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 rust-lightning
0.0.116 and bump rust-dlc
#1482
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
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.
LGMT 🚀
We might want to schedule the release of this though 🙂
...le/native/native.xcodeproj/xcuserdata/bonomat.xcuserdatad/xcschemes/xcschememanagement.plist
Outdated
Show resolved
Hide resolved
b8b46be
to
c136039
Compare
@luckysori : feel free to grab it tomorrow and continue on it. It looks like some of the lnd_dlc tests are now failing. |
7222d84
to
949fcfa
Compare
rust-lightning
0.0.116 and bump rust-dlc
dd7a857
to
172807d
Compare
172807d
to
c0daf29
Compare
@bonomat, @holzeis: Please have another look at this. There was a slightly tricky rebase in between which forced me to touch the collaborative revert functionality that was recently introduced. I've tested this a few times locally:
I also did the same (except the last step, since it's impossible) for a channel without an open position. |
aa6fe70
to
32a9226
Compare
Cargo.toml
Outdated
p2pd-oracle-client = { git = "https://github.com/p2pderivatives/rust-dlc", rev = "9815582" } | ||
dlc-trie = { git = "https://github.com/p2pderivatives/rust-dlc", rev = "9815582" } | ||
simple-wallet = { git = "https://github.com/p2pderivatives/rust-dlc", rev = "9815582" } | ||
dlc-manager = { git = "https://github.com/p2pderivatives/rust-dlc", rev = "d1e08a0" } |
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.
Note: we will need to bump this once more because this fix landed: p2pderivatives/rust-dlc#162
// Enqueue the message. | ||
dlc_message_handler.send_message(node_id, msg); | ||
|
||
// According to the LDK docs, you don't _have_ to call this function explicitly if you are |
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.
Nice 👍
// TODO: Should get the funding TXO from the coordinator, since we pass it in as an argument to | ||
// the API to collaboratively revert anyway. This way we can avoid depending on the channel | ||
// still being tracked by the `ChannelManager`. |
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.
Good point, we can definitely do this.
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.
Mentioned in this ticket: #1546
Unfortunately I cannot confirm that this works for me :(
Running `target/debug/coordinator`
2023-11-01 19:46:27 INFO coordinator::logger: Initialized logger
2023-11-01 19:46:27 INFO coordinator: Data-dir: "/Users/bonomat/src/github/itchysats/10101/data/coordinator/regtest"
2023-11-01 19:46:27 DEBUG coordinator::cli: Skipping node announcement on '0.0.0.0'.
2023-11-01 19:46:27 INFO coordinator::cli: Adding node announcement within local network 192.168.178.56. Do not use for production!
2023-11-01 19:46:27 INFO ln_dlc_node::on_chain_wallet: Creating the wallet network=Regtest
2023-11-01 19:46:27 INFO ln_dlc_node::node::channel_manager: Found channel manager data on disk. Recovering from stored state
Error: Unknown required feature preventing decode |
Hmm, I haven't been able to reproduce your problem yet. |
I can confirm that it's working for me 🚀
|
Unfortunately I have severe problems with this branch :( Even if I just use this branch to do a restart roundtrip I get errors, e.g.
Get same error :(
Edit: I thought I'll give upgrading rust to 1.73 a change but without luck. |
I did a full wipe of all cached dependencies, data and docker and now I get a new error 😅
error comes from here: |
Did you check out the right commit? That's a problem that was solved with p2pderivatives/rust-lightning@a57281b for me. |
Mhm, thanks... I suspect I became the unsuspecting victim of cosmic radiation, which decided to play a little prank by flipping a few bits. This cosmic shenanigan led to the birth of a version control monster! This sneaky creature was a master at hide and seek and thwarted all my attempts to reset the git branch against the remote. But fear not, for after a good old-fashioned restart of my machine, I finally managed to outwit and defeat the cosmic trickster, and now we're on the path to world peace, one git commit at a time! |
Hahaha, I knew we would get there eventually! |
Only 15 seconds was not always enough. Giving it a minute seems to always work locally.
32a9226
to
8ef9415
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.
Nice.
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.
Works for me!
Some notes: - We've had to increase the payment amounts in the `multi_hop_payment` and `just_in_time_channel_with_multiple_payments` tests, as otherwise we would run into `route not found` errors. It's probably worth investigating why this is the case. - We have decided to eagerly send `rust-dlc` messages because: (1) after the upgrade they were not being automatically sent as fast as they used to and (2) we can speed up the protocols this way anyway. Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at>
The same `forwarding_fee_proportional_millionths` field already exists in `LnDlcNodeSettings`.
8ef9415
to
247a892
Compare
Fix #1084.
Fix #1472.
As far as we can tell, positions opened before this update will not be loaded from storage. It is therefore recommended to close all positions before upgrading to this patch.Some notes:
We've had to increase the payment amounts in the
multi_hop_payment
andjust_in_time_channel_with_multiple_payments
tests, as otherwise we would run intoroute not found
errors. It's probably worth investigating why this is the case.We have decided to eagerly send
rust-dlc
messages because: (1) after the upgrade they were not being automatically sent as fast as they used to and (2) we can speed up the protocols this way anyway.