lnrpc: populate new AmpInvoiceState field in CreateRPCInvoice

This commit is contained in:
Olaoluwa Osuntokun committed 2021-10-28 15:50:20 -07:00
1 parent d8ce00e016
commit 698b5a8079
5 files changed
+2002 -1687

No files matched your search

+33 -1
View File
@@ -2838,6 +2838,30 @@
},
"description": "Details specific to AMP HTLCs."
},
"lnrpcAMPInvoiceState": {
"type": "object",
"properties": {
"state": {
"$ref": "#/definitions/lnrpcInvoiceHTLCState",
"description": "The state the HTLCs associated with this setID are in."
},
"settle_index": {
"type": "string",
"format": "uint64",
"description": "The settle index of this HTLC set, if the invoice state is settled."
},
"settle_time": {
"type": "string",
"format": "int64",
"description": "The time this HTLC set was settled expressed in unix epoch."
},
"amt_paid_msat": {
"type": "string",
"format": "int64",
"description": "The total amount paid for the sub-invoice expressed in milli satoshis."
}
}
},
"lnrpcAMPRecord": {
"type": "object",
"properties": {
@@ -4755,11 +4779,19 @@
"payment_addr": {
"type": "string",
"format": "byte",
"description": "The payment address of this invoice. This value will be used in MPP\npayments, and also for newer invoies that always require the MPP paylaod\nfor added end-to-end security."
"description": "The payment address of this invoice. This value will be used in MPP\npayments, and also for newer invoices that always require the MPP payload\nfor added end-to-end security."
},
"is_amp": {
"type": "boolean",
"description": "Signals whether or not this is an AMP invoice."
},
"amp_invoice_state": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/lnrpcAMPInvoiceState"
},
"description": "Maps a 32-byte hex-encoded set ID to the sub-invoice AMP state for the\ngiven set ID. This field is always populated for AMP invoices, and can be\nused along side LookupInvoice to obtain the HTLC information related to a\ngiven sub-invoice.",
"title": "[EXPERIMENTAL]:"
}
}
},