Skip to content

Commit 990096f

Browse files
cdeckerrustyrussell
authored andcommitted
schema: Fix wrong type of CLTV in route
We were using `number` instead of `u32` which caused it to be serialized to string with a decimal, which then would be rejected by lightningd. Changelog-Fixed: proto: Fixed a wrong number type being used in routes
1 parent 5a4e6ec commit 990096f

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ statements_gettextgen.po linguist-generated=true
1717
cln-grpc/proto/node.proto -text -diff linguist-generated=true
1818
cln-grpc/src/convert.rs -text -diff linguist-generated=true
1919
cln-rpc/src/model.rs -text -diff linguist-generated=true
20-
contrib/pyln-testing/pyln/testing/node_pb2.py linguist-generated=true
20+
contrib/pyln-testing/pyln/testing/node_pb2.py -text -diff linguist-generated=true

cln-grpc/proto/node.proto

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cln-grpc/src/convert.rs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cln-rpc/src/model.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/schemas/getroute.request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"description": ""
2121
},
2222
"cltv": {
23-
"type": "number",
23+
"type": "u32",
2424
"description": ""
2525
},
2626
"fromid": {

0 commit comments

Comments
 (0)