Merge pull request #8544 from ellemouton/undoChainsListDeprecation

lnrpc: undo GetInfo Chains list deprecation
This commit is contained in:
Oliver Gugger 2024-03-12 15:55:13 -06:00 committed by GitHub
commit 1fd6bc870b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2248 additions and 2251 deletions

View file

@ -270,9 +270,8 @@
* [Remove Litecoin code](https://github.com/lightningnetwork/lnd/pull/7867). * [Remove Litecoin code](https://github.com/lightningnetwork/lnd/pull/7867).
With this change, the `Bitcoin.Active` config option is now deprecated since With this change, the `Bitcoin.Active` config option is now deprecated since
Bitcoin is now the only supported chain. The `chains` field in the Bitcoin is now the only supported chain. The `chain` field in the
`lnrpc.GetInfoResponse` message along with the `chain` field in the `lnrpc.Chain` message has also been deprecated for the same reason.
`lnrpc.Chain` message have also been deprecated for the same reason.
* The payment lifecycle code has been refactored to improve its maintainablity. * The payment lifecycle code has been refactored to improve its maintainablity.
In particular, the complexity involved in the lifecycle loop has been In particular, the complexity involved in the lifecycle loop has been

File diff suppressed because it is too large Load diff

View file

@ -1940,10 +1940,11 @@ message GetInfoResponse {
reserved 11; reserved 11;
/* /*
Deprecated. The only active chain is bitcoin. A list of active chains the node is connected to. This will only
A list of active chains the node is connected to ever contain a single entry since LND will only ever have a single
chain backend during its lifetime.
*/ */
repeated Chain chains = 16 [deprecated = true]; repeated Chain chains = 16;
// The URIs of the current node. // The URIs of the current node.
repeated string uris = 12; repeated string uris = 12;

View file

@ -5003,7 +5003,7 @@
"items": { "items": {
"$ref": "#/definitions/lnrpcChain" "$ref": "#/definitions/lnrpcChain"
}, },
"title": "Deprecated. The only active chain is bitcoin.\nA list of active chains the node is connected to" "description": "A list of active chains the node is connected to. This will only\never contain a single entry since LND will only ever have a single\nchain backend during its lifetime."
}, },
"uris": { "uris": {
"type": "array", "type": "array",