listpeerchannels: add channel_type, both in hex and as array of names.

Changelog-Added: JSON-RPC: `listpeerchannels` now has `channel_type` field.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-03-20 10:49:51 +10:30
parent d818614aa9
commit e75cf2e7fb
7 changed files with 101 additions and 2 deletions

View File

@@ -3700,6 +3700,20 @@ def test_sql(node_factory, bitcoind):
'type': 'string'},
{'name': 'message',
'type': 'string'}]},
'peerchannels_channel_type_bits': {
'columns': [{'name': 'row',
'type': 'u64'},
{'name': 'arrindex',
'type': 'u64'},
{'name': 'bits',
'type': 'u64'}]},
'peerchannels_channel_type_names': {
'columns': [{'name': 'row',
'type': 'u64'},
{'name': 'arrindex',
'type': 'u64'},
{'name': 'names',
'type': 'string'}]},
'transactions': {
'indices': [['hash']],
'columns': [{'name': 'hash',