-
Notifications
You must be signed in to change notification settings - Fork 906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rune handling cleanups, new DEBUG_LIGHTNINGD option #7124
Merged
rustyrussell
merged 5 commits into
ElementsProject:master
from
rustyrussell:guilt/createrune-remove-param-punct
Mar 20, 2024
Merged
Rune handling cleanups, new DEBUG_LIGHTNINGD option #7124
rustyrussell
merged 5 commits into
ElementsProject:master
from
rustyrussell:guilt/createrune-remove-param-punct
Mar 20, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustyrussell
force-pushed
the
guilt/createrune-remove-param-punct
branch
2 times, most recently
from
March 8, 2024 02:30
25a4395
to
50f8762
Compare
rustyrussell
force-pushed
the
guilt/createrune-remove-param-punct
branch
from
March 18, 2024 22:40
b16fb0a
to
b4a2de9
Compare
…test. We do this for DEBUG_SUBD already, but I wanted to debug the main lightningd. (We rename --debugger to the more accurate --dev-debug-self) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This reveals an inadequacy in our rune error reporting: we complain a missing parameter is "not an integer field" instead of "not present": ``` # Rune requires amount_msat < 10,000! > with pytest.raises(RpcError, match='Not permitted: pnameamountmsat is not present') as exc_info: E AssertionError: Regex pattern did not match. E Regex: 'Not permitted: pnameamountmsat is not present' E Input: "RPC call failed: method: checkrune, payload: {'nodeid': '0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518', 'rune': 'b3hXuEM7Pqzk-C7HUw83xzvHOV7fmuGaWjdo-wHdfg89MCZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==', 'method': 'pay', 'params': {'bolt11': 'lnbcrt123n1pj7flqdsp5ndqgxpwk2hf50gzm0d4ssgjnd90cwkrc8udh7lfr5x583jms7yqspp5kn5stlnkv70celgw4vmdva9m7a57drd2403vnx4whq2p5nawkh3sdq5v3jhxcmjd9c8g6t0dccsxqyjw5qcqp99qxpqysgqhrgp7wp640gyujxk0mz4l6e6dxmqp7fz8pnnpnnqjfxg2scvuzfpwlxrj332u72p5g709eqr8rwaueruce84h0qmh6kc5c2zxgg9q4qps4cu8k'}}, error: {'code': 1502, 'message': 'Not permitted: pnameamountmsat is not an integer field'}" ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
vincenzopalazzo
approved these changes
Mar 19, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept-ACK b4a2de9
but it is missing a rebase before receive an ACK
rustyrussell
force-pushed
the
guilt/createrune-remove-param-punct
branch
from
March 19, 2024 23:01
b4a2de9
to
f1a4dd2
Compare
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rather than speaking 'rune' we should speak english in error messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reported-by: @ShahanaFarooqui
Changelog-Changed: runes: named parameters (e.g. `pnameamountmsat`) no longer need to remove underscores (i.e. `pnameamount_msat` now works as expected). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
rustyrussell
force-pushed
the
guilt/createrune-remove-param-punct
branch
from
March 19, 2024 23:48
f1a4dd2
to
6540d29
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
_
in rune names of parameters, but runes was changed two years ago to allow_
, so we should stop doing that. We allow both, for backwards compat.