mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-09 14:39:54 +02:00
doc: Deprecation reason of settled
on Invoice
This documents how to deal with `settled` being deprecated. It took me quite a bit of digging without such documentation. [skip ci]
This commit is contained in:
parent
f7b7442680
commit
b4647bc37f
@ -469,6 +469,7 @@
|
|||||||
},
|
},
|
||||||
"settled": {
|
"settled": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
"description": "The field is deprecated. Use the state field instead (compare to SETTLED).",
|
||||||
"title": "Whether this invoice has been fulfilled"
|
"title": "Whether this invoice has been fulfilled"
|
||||||
},
|
},
|
||||||
"creation_date": {
|
"creation_date": {
|
||||||
|
@ -11368,7 +11368,10 @@ type Invoice struct {
|
|||||||
//
|
//
|
||||||
//The fields value and value_msat are mutually exclusive.
|
//The fields value and value_msat are mutually exclusive.
|
||||||
ValueMsat int64 `protobuf:"varint,23,opt,name=value_msat,json=valueMsat,proto3" json:"value_msat,omitempty"`
|
ValueMsat int64 `protobuf:"varint,23,opt,name=value_msat,json=valueMsat,proto3" json:"value_msat,omitempty"`
|
||||||
// Whether this invoice has been fulfilled
|
//
|
||||||
|
//Whether this invoice has been fulfilled
|
||||||
|
//
|
||||||
|
//The field is deprecated. Use the state field instead (compare to SETTLED).
|
||||||
//
|
//
|
||||||
// Deprecated: Do not use.
|
// Deprecated: Do not use.
|
||||||
Settled bool `protobuf:"varint,6,opt,name=settled,proto3" json:"settled,omitempty"`
|
Settled bool `protobuf:"varint,6,opt,name=settled,proto3" json:"settled,omitempty"`
|
||||||
|
@ -3227,7 +3227,11 @@ message Invoice {
|
|||||||
*/
|
*/
|
||||||
int64 value_msat = 23;
|
int64 value_msat = 23;
|
||||||
|
|
||||||
// Whether this invoice has been fulfilled
|
/*
|
||||||
|
Whether this invoice has been fulfilled
|
||||||
|
|
||||||
|
The field is deprecated. Use the state field instead (compare to SETTLED).
|
||||||
|
*/
|
||||||
bool settled = 6 [deprecated = true];
|
bool settled = 6 [deprecated = true];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -4722,6 +4722,7 @@
|
|||||||
},
|
},
|
||||||
"settled": {
|
"settled": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
"description": "The field is deprecated. Use the state field instead (compare to SETTLED).",
|
||||||
"title": "Whether this invoice has been fulfilled"
|
"title": "Whether this invoice has been fulfilled"
|
||||||
},
|
},
|
||||||
"creation_date": {
|
"creation_date": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user