Coder Social home page Coder Social logo

corelightning + suez about suez HOT 18 CLOSED

prusnak avatar prusnak commented on July 1, 2024
corelightning + suez

from suez.

Comments (18)

lirre8 avatar lirre8 commented on July 1, 2024 2

I guess it shouldn't be too much problem to add some checks on what fields are available, to support both old and new versions of cln. I can work on a fix for that

from suez.

TTK-199837 avatar TTK-199837 commented on July 1, 2024 1

Working! Thanks a lot!

from suez.

prusnak avatar prusnak commented on July 1, 2024

What version of CLN are you running? Is it the latest?

from suez.

TTK-199837 avatar TTK-199837 commented on July 1, 2024

from suez.

prusnak avatar prusnak commented on July 1, 2024

Can you try using "git bisect" to find which commit broke this?

https://git-scm.com/docs/git-bisect

from suez.

TTK-199837 avatar TTK-199837 commented on July 1, 2024

Hi! I believe the version I was running was before this update:

45e16bf

from suez.

TTK-199837 avatar TTK-199837 commented on July 1, 2024

I am running suez on nix-bitcoin / nixOS btw

from suez.

prusnak avatar prusnak commented on July 1, 2024

Can you try "git bisect" like instructed above?

from suez.

prusnak avatar prusnak commented on July 1, 2024

@lirre8 which version of CLN did you use to test your commit?

from suez.

TTK-199837 avatar TTK-199837 commented on July 1, 2024

I am going through the bisect process again. I think I might have messed up something, please bear with me.

Removed old messages as to not confuse everyone. Thanks!

from suez.

TTK-199837 avatar TTK-199837 commented on July 1, 2024

[operator@nixos:~/suez]$ git bisect good
bd90bb3 is the first bad commit
commit bd90bb3
Author: Sebastian Andersson [email protected]
Date: Sat Mar 4 11:33:34 2023 +0100

Add option to show min and max htlc

clnclient.py | 18 ++++++++++++++++++
lndclient.py | 26 ++++++++++++++++++++++----
suez.py | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--
3 files changed, 95 insertions(+), 6 deletions(-)

from suez.

lirre8 avatar lirre8 commented on July 1, 2024

@lirre8 which version of CLN did you use to test your commit?

I've been using v22.11.1, which is not the latest anymore but pretty much up to date. But as I mentioned in #42 (comment), it seems like the cln implementation is using fields that have been removed a while ago, so the latest version of cln doesn't work at all..

I should probably have checked that the htlc_minimum_msat was returning the expected value even for older version, sorry for that. So it seems now that neither an old or newer version will work..

I guess we could fix so that htlc_minimum_msat and htlc_maximum_msat works with the older version of cln that was working before that commit. But shouldn't we update it so it works with the latest version?

Note: So what I'm saying here is the you are probably not using the latest version of cln @TTK-199837, can you check the exact version by running lightning-cli --version?

from suez.

prusnak avatar prusnak commented on July 1, 2024

My goal is to support only the most recent version of CLN. If it's easy to support previous versions, let's do it, but if it's a problem, then let's skip it.

from suez.

TTK-199837 avatar TTK-199837 commented on July 1, 2024

Hi! running lightning-cli --version outputs: v23.02.2

from suez.

lirre8 avatar lirre8 commented on July 1, 2024

OK, so you are on the latest version, I guess I was wrong. But weird that my CLN node has different outputs than yours then, I have to look into that

from suez.

TTK-199837 avatar TTK-199837 commented on July 1, 2024

Please let me know if there is anything I can help with! Thanks a lot!

I would like to mention again that fee adjustments seem broken... I am using:

poetry run ./suez --client=c-lightning --base-fee 0 --fee-rate 500 --fee-spread 1.8

from suez.

lirre8 avatar lirre8 commented on July 1, 2024

I can't make any sense on why our CLN nodes would return different data. As far as I can tell, my node does it according to the latest docs: https://lightning.readthedocs.io/lightning-listpeers.7.html. If anyone could explain why your node differs in some field names and values I'd be very happy :)

Anyway, it's an easy problem to solve to just add some checks on the fields that differs and handle them accordingly. I have created a PR that works fine for me: #47

Regarding the issue with fee adjustment, I'm seeing this error after adding some debug logs: Command "setchannelfee" is deprecated. But this is a completely different problem, lets open a separate issue for that: #48

from suez.

lirre8 avatar lirre8 commented on July 1, 2024

@TTK-199837 The PR was merged, can you pull the latest code from master and check if it's working when you have a chance?

from suez.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.