mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
Merge pull request #7402 from bottlepay/final-resolution-info
rpcserver: expose store final htlc resolutions flag on info call
This commit is contained in:
commit
c79b0799bf
@ -81,7 +81,9 @@ current gossip sync query status.
|
||||
after upgrading lnd.
|
||||
|
||||
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
|
||||
hints](https://github.com/lightningnetwork/lnd/pull/7082), up to `maxHopHints`
|
||||
|
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.
|
||||
*/
|
||||
bool require_htlc_interceptor = 21;
|
||||
|
||||
// Indicates whether final htlc resolutions are stored on disk.
|
||||
bool store_final_htlc_resolutions = 22;
|
||||
}
|
||||
|
||||
message GetRecoveryInfoRequest {
|
||||
|
@ -4769,6 +4769,10 @@
|
||||
"require_htlc_interceptor": {
|
||||
"type": "boolean",
|
||||
"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."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
44
rpcserver.go
44
rpcserver.go
@ -2887,26 +2887,32 @@ func (r *rpcServer) GetInfo(_ context.Context,
|
||||
}
|
||||
|
||||
// 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{
|
||||
IdentityPubkey: encodedIDPub,
|
||||
NumPendingChannels: nPendingChannels,
|
||||
NumActiveChannels: activeChannels,
|
||||
NumInactiveChannels: inactiveChannels,
|
||||
NumPeers: uint32(len(serverPeers)),
|
||||
BlockHeight: uint32(bestHeight),
|
||||
BlockHash: bestHash.String(),
|
||||
SyncedToChain: isSynced,
|
||||
Testnet: chainreg.IsTestnet(&r.cfg.ActiveNetParams),
|
||||
Chains: activeChains,
|
||||
Uris: uris,
|
||||
Alias: nodeAnn.Alias.String(),
|
||||
Color: routing.EncodeHexColor(nodeAnn.RGBColor),
|
||||
BestHeaderTimestamp: bestHeaderTimestamp,
|
||||
Version: build.Version() + " commit=" + build.Commit,
|
||||
CommitHash: build.CommitHash,
|
||||
SyncedToGraph: isGraphSynced,
|
||||
Features: features,
|
||||
RequireHtlcInterceptor: r.cfg.RequireInterceptor,
|
||||
IdentityPubkey: encodedIDPub,
|
||||
NumPendingChannels: nPendingChannels,
|
||||
NumActiveChannels: activeChannels,
|
||||
NumInactiveChannels: inactiveChannels,
|
||||
NumPeers: uint32(len(serverPeers)),
|
||||
BlockHeight: uint32(bestHeight),
|
||||
BlockHash: bestHash.String(),
|
||||
SyncedToChain: isSynced,
|
||||
Testnet: isTestNet,
|
||||
Chains: activeChains,
|
||||
Uris: uris,
|
||||
Alias: nodeAnn.Alias.String(),
|
||||
Color: nodeColor,
|
||||
BestHeaderTimestamp: bestHeaderTimestamp,
|
||||
Version: version,
|
||||
CommitHash: build.CommitHash,
|
||||
SyncedToGraph: isGraphSynced,
|
||||
Features: features,
|
||||
RequireHtlcInterceptor: r.cfg.RequireInterceptor,
|
||||
StoreFinalHtlcResolutions: r.cfg.StoreFinalHtlcResolutions,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user