lightning icon indicating copy to clipboard operation
lightning copied to clipboard

Adds option_will_fund info to the RPC listnodes output

Open litch opened this issue 2 years ago • 0 comments

I'm having a lot of trouble with this. I have been able to get the code to run and return the values well, but I am unable to get the schema -> code-generation to create the files correctly.

From what I can tell, I should be able to make a change to the file changed:

doc/schemas/listnodes.schema.json

And that should bubble out first to .msggen.json. That is working correctly.

Then the contrib/msggen/msggen/__main__.py loads that file and should output a correct:

  • cln-rpc/src/model.rs
  • cln-grpc/proto/node.proto
  • cln-grpc/src/server.rs
  • cln-grpc/src/convert.rs

The included changes create new definitions for the ListnodesNodesOption_will_fund objects, however, they do not attach that object into the ListnodesNodes object.

I would appreciate any guidance here.

litch avatar Jun 03 '22 19:06 litch