Unable to generate P2TR address via gRPC
Unable to generate P2TR address via gRPC.
rpc error: code = Canceled desc = stream terminated by RST_STREAM with error code: CANCEL
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