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

This commit is contained in:
Olaoluwa Osuntokun 2018-07-05 22:05:23 -05:00
parent 43d1d1f4f2
commit 4813da9a64
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -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