Merge pull request #7402 from bottlepay/final-resolution-info
rpcserver: expose store final htlc resolutions flag on info call
This commit is contained in:
5 files changed
+2142
-2114
No files matched your search
@@ -81,7 +81,9 @@ current gossip sync query status.
|
|||||||
after upgrading lnd.
|
after upgrading lnd.
|
||||||
|
|
||||||
This feature is [opt-in](https://github.com/lightningnetwork/lnd/pull/7341)
|
This feature is [opt-in](https://github.com/lightningnetwork/lnd/pull/7341)
|
||||||
via a config flag.
|
via a config flag. The status of the flag is
|
||||||
|
[exposed](https://github.com/lightningnetwork/lnd/pull/7402) at run-time
|
||||||
|
through GetInfo.
|
||||||
|
|
||||||
* Zero-amount private invoices [now provide hop
|
* Zero-amount private invoices [now provide hop
|
||||||
hints](https://github.com/lightningnetwork/lnd/pull/7082), up to `maxHopHints`
|
hints](https://github.com/lightningnetwork/lnd/pull/7082), up to `maxHopHints`
|
||||||
|
|||||||
+2107
-2094
File diff suppressed because it is too large.
Load diff
@@ -1912,6 +1912,9 @@ message GetInfoResponse {
|
|||||||
Indicates whether the HTLC interceptor API is in always-on mode.
|
Indicates whether the HTLC interceptor API is in always-on mode.
|
||||||
*/
|
*/
|
||||||
bool require_htlc_interceptor = 21;
|
bool require_htlc_interceptor = 21;
|
||||||
|
|
||||||
|
// Indicates whether final htlc resolutions are stored on disk.
|
||||||
|
bool store_final_htlc_resolutions = 22;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetRecoveryInfoRequest {
|
message GetRecoveryInfoRequest {
|
||||||
|
|||||||
@@ -4769,6 +4769,10 @@
|
|||||||
"require_htlc_interceptor": {
|
"require_htlc_interceptor": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Indicates whether the HTLC interceptor API is in always-on mode."
|
"description": "Indicates whether the HTLC interceptor API is in always-on mode."
|
||||||
|
},
|
||||||
|
"store_final_htlc_resolutions": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Indicates whether final htlc resolutions are stored on disk."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+25
-19
@@ -2887,26 +2887,32 @@ func (r *rpcServer) GetInfo(_ context.Context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO(roasbeef): add synced height n stuff
|
// TODO(roasbeef): add synced height n stuff
|
||||||
|
|
||||||
|
isTestNet := chainreg.IsTestnet(&r.cfg.ActiveNetParams)
|
||||||
|
nodeColor := routing.EncodeHexColor(nodeAnn.RGBColor)
|
||||||
|
version := build.Version() + " commit=" + build.Commit
|
||||||
|
|
||||||
return &lnrpc.GetInfoResponse{
|
return &lnrpc.GetInfoResponse{
|
||||||
IdentityPubkey: encodedIDPub,
|
IdentityPubkey: encodedIDPub,
|
||||||
NumPendingChannels: nPendingChannels,
|
NumPendingChannels: nPendingChannels,
|
||||||
NumActiveChannels: activeChannels,
|
NumActiveChannels: activeChannels,
|
||||||
NumInactiveChannels: inactiveChannels,
|
NumInactiveChannels: inactiveChannels,
|
||||||
NumPeers: uint32(len(serverPeers)),
|
NumPeers: uint32(len(serverPeers)),
|
||||||
BlockHeight: uint32(bestHeight),
|
BlockHeight: uint32(bestHeight),
|
||||||
BlockHash: bestHash.String(),
|
BlockHash: bestHash.String(),
|
||||||
SyncedToChain: isSynced,
|
SyncedToChain: isSynced,
|
||||||
Testnet: chainreg.IsTestnet(&r.cfg.ActiveNetParams),
|
Testnet: isTestNet,
|
||||||
Chains: activeChains,
|
Chains: activeChains,
|
||||||
Uris: uris,
|
Uris: uris,
|
||||||
Alias: nodeAnn.Alias.String(),
|
Alias: nodeAnn.Alias.String(),
|
||||||
Color: routing.EncodeHexColor(nodeAnn.RGBColor),
|
Color: nodeColor,
|
||||||
BestHeaderTimestamp: bestHeaderTimestamp,
|
BestHeaderTimestamp: bestHeaderTimestamp,
|
||||||
Version: build.Version() + " commit=" + build.Commit,
|
Version: version,
|
||||||
CommitHash: build.CommitHash,
|
CommitHash: build.CommitHash,
|
||||||
SyncedToGraph: isGraphSynced,
|
SyncedToGraph: isGraphSynced,
|
||||||
Features: features,
|
Features: features,
|
||||||
RequireHtlcInterceptor: r.cfg.RequireInterceptor,
|
RequireHtlcInterceptor: r.cfg.RequireInterceptor,
|
||||||
|
StoreFinalHtlcResolutions: r.cfg.StoreFinalHtlcResolutions,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user