Merge pull request #1125 from Roasbeef/streaming-invoice-improvements

channeldb+lnrpc: re-work invoicing API to implement robust streaming notification delivery
This commit is contained in:
Olaoluwa Osuntokun
2018-07-10 20:42:00 -07:00
committed by GitHub
19 changed files with 1771 additions and 532 deletions

View File

@@ -2195,11 +2195,13 @@ func addInvoice(ctx *cli.Context) error {
}
printJSON(struct {
RHash string `json:"r_hash"`
PayReq string `json:"pay_req"`
RHash string `json:"r_hash"`
PayReq string `json:"pay_req"`
AddIndex uint64 `json:"add_index"`
}{
RHash: hex.EncodeToString(resp.RHash),
PayReq: resp.PaymentRequest,
RHash: hex.EncodeToString(resp.RHash),
PayReq: resp.PaymentRequest,
AddIndex: resp.AddIndex,
})
return nil