multi: bump lnd to v0.17.0-beta

This commit is contained in:
Oliver Gugger 2023-09-28 11:34:28 +02:00
parent e6634058f9
commit b3c0d0e9b1
No known key found for this signature in database
GPG key ID: 8E4256593F177720
22 changed files with 1766 additions and 1490 deletions

View file

@ -9,13 +9,13 @@ import (
terminal "github.com/lightninglabs/lightning-terminal"
"github.com/lightninglabs/lndclient"
"github.com/lightninglabs/protobuf-hex-display/jsonpb"
"github.com/lightninglabs/protobuf-hex-display/proto"
"github.com/lightningnetwork/lnd/lncfg"
"github.com/lightningnetwork/lnd/lnrpc"
"github.com/lightningnetwork/lnd/macaroons"
"github.com/urfave/cli"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/protobuf/proto"
"gopkg.in/macaroon.v2"
)
@ -236,17 +236,11 @@ func readMacaroon(macPath string) (grpc.DialOption, error) {
}
func printRespJSON(resp proto.Message) { // nolint
jsonMarshaler := &jsonpb.Marshaler{
EmitDefaults: true,
OrigName: true,
Indent: "\t", // Matches indentation of printJSON.
}
jsonStr, err := jsonMarshaler.MarshalToString(resp)
jsonBytes, err := lnrpc.ProtoJSONMarshalOpts.Marshal(resp)
if err != nil {
fmt.Println("unable to decode response: ", err)
return
}
fmt.Println(jsonStr)
fmt.Println(string(jsonBytes))
}