rpcserver: send pending channels to aux data parser

We added the custom data to the pending channels but forgot to also
send the response RPC message to the custom channel parser so it can
turn it into human-readable JSON.
This commit is contained in:
Oliver Gugger 2024-06-07 15:39:28 +02:00
parent d6e1d19fa1
commit 77339a83d4
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -4180,6 +4180,16 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
resp.WaitingCloseChannels = waitingCloseChannels
resp.TotalLimboBalance += limbo
err = fn.MapOptionZ(
r.server.implCfg.AuxDataParser,
func(parser AuxDataParser) error {
return parser.InlineParseCustomData(resp)
},
)
if err != nil {
return nil, fmt.Errorf("error parsing custom data: %w", err)
}
return resp, nil
}