-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[feature]: Append the listchannels command with the short_chan_id representation (XXXX:XX:X) besides the 8 byte integer one. #8650
Comments
Hi @ziggie1984 ! I can have a look at the listchannels and do the asked changes. |
At the moment struggleing to install the dependencies... google.golang.org/grpc/home/beast/go/pkg/mod/google.golang.org/[email protected]/server.go:2082:14: undefined: atomic.Int64 github.com/lightningnetwork/lnd/lnwirelnwire/accept_channel.go:269:33: cannot use fn.a (type tlv.RecordT[*github.com/lightningnetwork/lnd/tlv.tlvType4,"".Musig2Nonce]) as type go.shape.struct { github.com/lightningnetwork/lnd/tlv.recordType *uint8; Val [66]uint8 }_0 in assignment modernc.org/sqlite/lib/home/beast/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_linux_amd64.go:24762:51: undefined: libc.Xpread Does anyone encountered some of these before? |
That sounds like you didn't install Go 1.21 or later correctly. Make sure you uninstalled any previous versions fully. |
I will uninstall it and add it again. |
sudo make install I've reinstalled correct version for go but I still have some issues.. |
The use of sudo -E env "PATH=$PATH" make install |
I've installed correctly now. I don't understand why looking for image/container since I didn't used |
The Postgres image is used for some unit tests as a test database backend. |
What should I use instead of this? 'or don't use bitcoind v27.0' |
An older version, e.g. v26. |
Thats's good news! I will downgrade |
-- FAIL: TestInvoiceRegistry (0.07s) make: *** [Makefile:221: unit] Error 123 After downgrade make test looks like this..is there any way to resolve these? |
By the way, @andiz2, you could still contribute even if some of your test cases fail. They will run in the CI anyway. I still have some failed test cases locally, and some of them are flaky. |
Looks more clear now!
and populate with proper values like these ones are
Then it will be good to go :) |
Yes and also update the release notes 👍 |
Another representation is height x index x vout like #2432 |
Very good idea, I think using Maybe a separate PR could implement this comment as well, so make sure we accept both formats in our RPC commands. |
On Mon, 22 Apr 2024 at 12:31, ziggieXXX ***@***.***> wrote:
Another representation is height x index x vout like #2432
<#2432>
Very good idea, I think using x instead of : makes sense because its
seems to be the right format also mentioned in the BOLT Spec
<https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#definition-of-short_channel_id>
Maybe a separate PR could implement this comment as well, so make sure we
accept both formats in our RPC commands.
#2432 (comment)
<#2432 (comment)>
—
Reply to this email directly, view it on GitHub
<#8650 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEAVOTSKXN4WRRWOHFXDPWDY6TKFTAVCNFSM6AAAAABGHGSI4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRYHEZDKOJXGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
Very good idea!
I can implement the version with x if this is the desired one. Is not much
to change.
Just let me know which one should be the final version so I can commit with
that
|
Yes, use |
So from what I've noticed the new command will have this output |
Regarding lnrpc.Channel I see
that is used as ShortChannelID from what i see in
shouldn't this be used to store real channel_id as name suggests? |
I've added these to lnrpc.Channel:
along with methods:
and these 2 lines in the channel init in method createRPCOpenChannel
I saw that the short chan integer64 is already done via
I will update if there was misunderstoods 😄 |
When working on an issue, create a PR set it into draft and from there ask for questions when you are stuck. Otherwise it costs too much bandwidth for reviewers. Always bundle questions so that it's not a constant back and forth. |
@ziggie1984 you might be right... Maybe I need to lurk around for some time until I have a deeper understanding of the project and then try to contribuite again...
is this var ChanId or shortChanId as the name sugest it should be chanId.. |
Yes there is an inaccuracy see the description of the issue, we label the short_chan_id as chan_id in the current
You learn the most by coding, so I would recommend to push through, learn to persist I am sure you will be able to solve this issue. |
I would like to work on this issue. Is it available? |
@andiz2 are you still planning to deliver this PR? Otherwise its open for grabs. |
@NishantBansal2003 give it a try! |
Update: This should only touch the |
Currently we only have the 8 byte representation in the
listchannels
output, but we have several parts in the logs where we would only log the short channel id in a different format (block:transaction:output) for an easier analysis it makes sense to also show this representation when querying the channels.Moreover I think we can add the Channel ID as well, so we have all possible representations of the channel. This means we should depict the real chan_id in the
listchannels
output (chan_id : https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#definition-of-channel_id) and two short_chan_id representations (integer64
andblock:transaction:output
) next to it.The text was updated successfully, but these errors were encountered: