File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,18 @@ package main
2
2
3
3
import (
4
4
"bytes"
5
- "encoding/json"
6
5
"errors"
7
6
"fmt"
8
7
"os"
9
8
"strconv"
10
9
"time"
11
10
12
- "github.com/golang/protobuf/jsonpb"
13
- "github.com/golang/protobuf/proto"
14
11
"github.com/lightninglabs/loop"
15
12
"github.com/lightninglabs/loop/looprpc"
16
13
"github.com/lightninglabs/loop/swap"
14
+ "github.com/lightninglabs/protobuf-hex-display/json"
15
+ "github.com/lightninglabs/protobuf-hex-display/jsonpb"
16
+ "github.com/lightninglabs/protobuf-hex-display/proto"
17
17
18
18
"github.com/btcsuite/btcutil"
19
19
@@ -53,6 +53,7 @@ func printJSON(resp interface{}) {
53
53
54
54
func printRespJSON (resp proto.Message ) {
55
55
jsonMarshaler := & jsonpb.Marshaler {
56
+ OrigName : true ,
56
57
EmitDefaults : true ,
57
58
Indent : " " ,
58
59
}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ require (
10
10
github.com/google/go-cmp v0.3.1 // indirect
11
11
github.com/grpc-ecosystem/grpc-gateway v1.10.0
12
12
github.com/jessevdk/go-flags v1.4.0
13
+ github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce75d
13
14
github.com/lightningnetwork/lnd v0.9.0-beta-rc3.0.20200121213302-a2977c4438b5
14
15
github.com/lightningnetwork/lnd/queue v1.0.2
15
16
github.com/urfave/cli v1.20.0
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI
136
136
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf /go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk =
137
137
github.com/lightninglabs/neutrino v0.11.0 h1:lPpYFCtsfJX2W5zI4pWycPmbbBdr7zU+BafYdLoD6k0 =
138
138
github.com/lightninglabs/neutrino v0.11.0 /go.mod h1:CuhF0iuzg9Sp2HO6ZgXgayviFTn1QHdSTJlMncK80wg =
139
+ github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce75d h1:QWD/5MPnaZfUVP7P8wLa4M8Td2DI7XXHXt2vhVtUgGI =
139
140
github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce75d /go.mod h1:KDb67YMzoh4eudnzClmvs2FbiLG9vxISmLApUkCa4uI =
140
141
github.com/lightningnetwork/lightning-onion v1.0.1 h1:qChGgS5+aPxFeR6JiUsGvanei1bn6WJpYbvosw/1604 =
141
142
github.com/lightningnetwork/lightning-onion v1.0.1 /go.mod h1:rigfi6Af/KqsF7Za0hOgcyq2PNH4AN70AaMRxcJkff4 =
You can’t perform that action at this time.
0 commit comments