lnrpc+rpcserver: add and populate custom channel data

This commit is contained in:
Oliver Gugger committed 2024-09-18 19:07:26 +02:00
1 parent ea83300942
commit 5e1a98cd43
5 files changed
+147 -6

No files matched your search

+5
View File
@@ -964,6 +964,11 @@ func (h *HarnessTest) AssertChannelBalanceResp(hn *node.HarnessNode,
expected *lnrpc.ChannelBalanceResponse) {
resp := hn.RPC.ChannelBalance()
// Ignore custom channel data of both expected and actual responses.
expected.CustomChannelData = nil
resp.CustomChannelData = nil
require.True(h, proto.Equal(expected, resp), "balance is incorrect "+
"got: %v, want: %v", resp, expected)
}