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

Unable to generate P2TR address via gRPC #6996

Closed
2Fast2BCn opened this issue Jan 17, 2024 · 1 comment · Fixed by #7217
Closed

Unable to generate P2TR address via gRPC #6996

2Fast2BCn opened this issue Jan 17, 2024 · 1 comment · Fixed by #7217

Comments

@2Fast2BCn
Copy link

Unable to generate P2TR address via gRPC.

rpc error: code = Canceled desc = stream terminated by RST_STREAM with error code: CANCEL

@rox1338
Copy link

rox1338 commented Mar 12, 2024

I had a look at the logs of cln and it logs this:
2024-03-12 10:05:00 thread 'main' panicked at cln-grpc/src/convert.rs:2885:61:
2024-03-12 10:05:00 called Result::unwrap() on an Err value: Unknown variant 3 for enum NewaddrAddresstype

So I think the problem is here:
https://github.com/ElementsProject/lightning/blob/7cbff8a2c096bd171337efd3c84e61762465efcb/cln-rpc/src/model.rs#L1136C1-L1146C3
P2TR should map to 3 according to the protobuf:
https://github.com/ElementsProject/lightning/blob/7cbff8a2c096bd171337efd3c84e61762465efcb/cln-grpc/proto/node.proto#L997C1-L1005C2

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 a pull request may close this issue.

2 participants