mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-20 11:06:54 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user