-
Notifications
You must be signed in to change notification settings - Fork 210
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
cln: update to v23.08 to allow self payments #2960
cln: update to v23.08 to allow self payments #2960
Conversation
9a3fc38
to
f9eac24
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2960 +/- ##
==========================================
+ Coverage 59.76% 59.77% +0.01%
==========================================
Files 197 197
Lines 41149 41147 -2
==========================================
+ Hits 24593 24596 +3
+ Misses 16556 16551 -5
☔ View full report in Codecov by Sentry. |
f9eac24
to
369c8c1
Compare
369c8c1
to
95238b5
Compare
This should be relatively straightforward if you want to take a shot at writing a test. See The main thing that you'll need to change, is that instead of generating an invoice with |
This breaks our CI, probably some CLN command that changed. |
Thanks to point me in the correct file, but
I see, I assume that CLN in this case is the user_client? The use case that I would like to test is
Yeah, I am not able to reproduce on my machine because my remote build machine apparently will OOM :/ |
I think you can reproduce one (of potentially more) problems in
After 30 retries it starts without route hints, leading to the user shell becoming read after over 160s. When checking the output of On fedimint/gateway/ln-gateway/src/lnd.rs Lines 292 to 357 in 2904728
If you are running out of memory when compiling for diff --git a/scripts/build.sh b/scripts/build.sh
index 2dfae4e581..374e43f06f 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -38,6 +38,6 @@ cd $SRC_DIR || exit 1
# Note: Respect 'CARGO_PROFILE' that crane uses
if [ -z "${SKIP_CARGO_BUILD:-}" ]; then
- cargo build --workspace --all-targets ${CARGO_PROFILE:+--profile ${CARGO_PROFILE}}
+ cargo build -j 2 --workspace --all-targets ${CARGO_PROFILE:+--profile ${CARGO_PROFILE}}
fi
export PATH="$PWD/target/${CARGO_PROFILE:-debug}:$PATH" |
@vincenzopalazzo @elsirion There's also |
95238b5
to
edb2525
Compare
7a57934
to
de71c13
Compare
de71c13
to
47d6cae
Compare
Ok this should be ready now! Just waiting for the CI |
3043131
to
1242052
Compare
@@ -65,8 +65,7 @@ async fn main() -> Result<(), anyhow::Error> { | |||
.serve_with_shutdown(listen, async { | |||
// Wait for plugin to signal it's shutting down | |||
// Shut down everything else via TaskGroup regardless of error | |||
let result = plugin.join().await; | |||
assert!(result.is_ok(), "{:?}", result); | |||
let _ = plugin.join().await; |
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 if expect
ing here would be useful or not. I'm ok with it. If anything panics we should normally see it anyway.
Just saw that the changes were single fixup commits, could you squash them please? |
8fc6b60
to
0d39e56
Compare
Yeah sorry I was just collecting all the review and the squash them Now should be done :) |
When I run
Also, I notice that
Perhaps this change isn't having the desired effect ... |
Yeah, this was something that I was looking into. We could drop https://github.com/fedimint/fedimint/pull/2960/files#diff-206b9ce276ab5971a2489d75eb1b12999d4bf3843b7988cbe8d687cfde61dea0R66-R73 because cln nix package get updated (?) I will try to drop it and made a rebase now
Regarding this, I am not sure about it the fedi flake nix is quite complex to understand what it is going on, sorry |
Head branch was pushed to by a user without write access
0d39e56
to
83aabf8
Compare
@dpc could you look into this issue? #2960 (comment). It doesn't seem like the patch |
Instead of having it as a separate package, try overwriting the existing one in I was planning to do it anyway. Otherwise only places that refer to this variable get this patched binary. It could be that where you're trying it is actually using |
Thanks, when it is merged #3336 (review) I will rebase on it |
Please |
83aabf8
to
c9c12b1
Compare
Rebased now to see what the CI tell us, thanks for the fix |
3759a9c
to
cf244ba
Compare
|
cf244ba
to
a90beab
Compare
This include the recent version of core lightning to allow self-payments. Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
a90beab
to
daa3292
Compare
Last time I tried updating tests were failing. I also remember manmeet pinning cln-rpc because it was introducing backward-incompat changes. What do we do about it? I'm closing as it just lags in the PR backlog. If anyone feels like moving it forward, feel free to reopen. |
This include the recent version of core lightning to
allow self-payments.