mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
fix : implements the bkpr-listincome
plugin for grpc interface.
Changelog-added support for the `bkpr-listincome` for grpc interface Signed-off-by: harshit933 <harshitverma933@gmail.com>
This commit is contained in:
parent
6bf97ac259
commit
85b79bc2e1
2 changed files with 23 additions and 0 deletions
|
@ -559,6 +559,8 @@ class GrpcServerGenerator(GrpcConverterGenerator):
|
|||
mname = method_name_overrides.get(method.name, method.name)
|
||||
# Tonic will convert to snake-case, so we have to do it here too
|
||||
name = re.sub(r'(?<!^)(?=[A-Z])', '_', mname).lower()
|
||||
name = name.replace("-", "")
|
||||
method.name = method.name.replace("-", "")
|
||||
self.write(f"""\
|
||||
async fn {name}(
|
||||
&self,
|
||||
|
|
21
doc/schemas/bkpr-listincome.request.json
Normal file
21
doc/schemas/bkpr-listincome.request.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"added": "pre-v0.10.1",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"consolidate_fees": {
|
||||
"type": "boolean",
|
||||
"description": "A brief description about consolidate_fees"
|
||||
},
|
||||
"start_time": {
|
||||
"type": "u32",
|
||||
"description": "Filters the events after the time"
|
||||
},
|
||||
"end_time": {
|
||||
"type": "u32",
|
||||
"description": "Filters the events up to the timestamp"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue