Skip to content

Commit

Permalink
cln-rpc: Skip the HTLC state for now
Browse files Browse the repository at this point in the history
It's schema definition is weirdly asymmetric, with variants dependent
on another fields' value. Need to decide if we want to either
hand-code a superset or make a more complex decoding, but definitely
not something we'd want the generator to be able to do.
  • Loading branch information
cdecker authored and rustyrussell committed Apr 1, 2022
1 parent d5f7548 commit 940f5c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/msggen/msggen/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
# Truncate the tree here, it's a complex structure with identitcal
# types
'ListPeers.peers[].channels[].state_changes[]': None,
'ListPeers.peers[].channels[].htlcs[].state': None,
'ListPeers.peers[].channels[].opener': "ChannelSide",
'ListPeers.peers[].channels[].closer': "ChannelSide",
'ListPeers.peers[].channels[].features[]': "string",
Expand Down
1 change: 1 addition & 0 deletions contrib/msggen/msggen/rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'ListPeers.peers[].channels[].state_changes[].old_state': "ChannelState",
'ListPeers.peers[].channels[].state_changes[].new_state': "ChannelState",
'ListPeers.peers[].channels[].state_changes[].cause': "ChannelStateChangeCause",
'ListPeers.peers[].channels[].htlcs[].state': None,
'ListPeers.peers[].channels[].opener': "ChannelSide",
'ListPeers.peers[].channels[].closer': "ChannelSide",
'ListPeers.peers[].channels[].features[]': "string",
Expand Down

0 comments on commit 940f5c3

Please sign in to comment.