lnrpc+lncli: rename skip_peer_alias_lookup to reflect opt-in behavior
This commit is contained in:
1 parent
55d62f8bab
commit
46b8de35ac
5 files changed
+776
-772
No files matched your search
@@ -1371,12 +1371,16 @@ func forwardingHistory(ctx *cli.Context) error {
|
||||
maxEvents = uint32(m)
|
||||
}
|
||||
|
||||
// By default we will look up the peers' alias information unless the
|
||||
// skip_peer_alias_lookup flag is specified.
|
||||
lookupPeerAlias := !ctx.Bool("skip_peer_alias_lookup")
|
||||
|
||||
req := &lnrpc.ForwardingHistoryRequest{
|
||||
StartTime: startTime,
|
||||
EndTime: endTime,
|
||||
IndexOffset: indexOffset,
|
||||
NumMaxEvents: maxEvents,
|
||||
SkipPeerAliasLookup: ctx.Bool("skip_peer_alias_lookup"),
|
||||
StartTime: startTime,
|
||||
EndTime: endTime,
|
||||
IndexOffset: indexOffset,
|
||||
NumMaxEvents: maxEvents,
|
||||
PeerAliasLookup: lookupPeerAlias,
|
||||
}
|
||||
resp, err := client.ForwardingHistory(ctxc, req)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user