cmd/lncli: update ad-hoc addinvoice response json to display add_index

This commit is contained in:
Olaoluwa Osuntokun committed 2018-07-06 16:45:01 -07:00
1 parent 43d1d1f4f2
commit 4813da9a64
1 file changed
+2
+2
View File
@@ -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