msggen: Use the inferred optional field

Changelog-Changed: msggen: The generated interfaces `cln-rpc` anc `cln-grpc` can now work with a range of versions rather than having to match the CLN version
This commit is contained in:
Christian Decker
2023-03-28 13:59:35 +02:00
committed by Rusty Russell
parent 392cacac81
commit 60b12ec096
7 changed files with 352 additions and 344 deletions

View File

@@ -131,7 +131,7 @@ message ListpeersResponse {
message ListpeersPeers {
bytes id = 1;
bool connected = 2;
uint32 num_channels = 8;
optional uint32 num_channels = 8;
repeated ListpeersPeersLog log = 3;
repeated ListpeersPeersChannels channels = 4;
repeated string netaddr = 5;
@@ -303,7 +303,7 @@ message ListfundsChannels {
uint32 funding_output = 5;
bool connected = 6;
ChannelState state = 7;
bytes channel_id = 9;
optional bytes channel_id = 9;
optional string short_channel_id = 8;
}