cmd/lncli: update ad-hoc addinvoice response json to display add_index
This commit is contained in:
1 file changed
+2
@@ -2194,9 +2194,11 @@ func addInvoice(ctx *cli.Context) error {
|
|||||||
printJSON(struct {
|
printJSON(struct {
|
||||||
RHash string `json:"r_hash"`
|
RHash string `json:"r_hash"`
|
||||||
PayReq string `json:"pay_req"`
|
PayReq string `json:"pay_req"`
|
||||||
|
AddIndex uint64 `json:"add_index"`
|
||||||
}{
|
}{
|
||||||
RHash: hex.EncodeToString(resp.RHash),
|
RHash: hex.EncodeToString(resp.RHash),
|
||||||
PayReq: resp.PaymentRequest,
|
PayReq: resp.PaymentRequest,
|
||||||
|
AddIndex: resp.AddIndex,
|
||||||
})
|
})
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user