plugins/topology: add direction field to listchannels.

It's a core concept in the spec which isn't directly exposed.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON-RPC: `listchannels` added a `direction` field (0 or 1) as per gossip specification.
This commit is contained in:
Rusty Russell
2023-01-30 16:37:03 +10:30
committed by Alex Myers
parent 611795beee
commit 9ab488fc41
9 changed files with 21 additions and 1 deletions

View File

@@ -545,6 +545,7 @@
"ListChannels.channels[].channel_flags": 7,
"ListChannels.channels[].delay": 12,
"ListChannels.channels[].destination": 2,
"ListChannels.channels[].direction": 16,
"ListChannels.channels[].features": 15,
"ListChannels.channels[].fee_per_millionth": 11,
"ListChannels.channels[].htlc_maximum_msat": 14,