-
Notifications
You must be signed in to change notification settings - Fork 912
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
Runes: document parameter usage, and let them be ints. #6295
Runes: document parameter usage, and let them be ints. #6295
Conversation
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.
ACK 0fa2412
@@ -427,6 +427,18 @@ static const char *check_condition(const tal_t *ctx, | |||
if (!ptok) | |||
return rune_alt_single_missing(ctx, alt); | |||
|
|||
/* Pass through valid integers as integers. */ | |||
if (ptok->type == JSMN_PRIMITIVE) { |
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.
cool this is much nicer than my suggestion./
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 0fa2412
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.
ACK 0fa2412
Nice!
This lead to confusion about how to specify `amount_msat`. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Previously any attempt would result in "is not an integer field"; we now recognize valid JSON integers as integer fields. Changelog-Fixed: Plugins: `commando` runes can now compare integer parameters using '<' and '>' as expected. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
It sometimes takes > 1800 seconds under valgrind. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Marked command stresstest as slow, to prevent timeouts. Ack b1e2786 |
b1e2786
to
b29732e
Compare
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.
ACK b29732e
(based on #6294 )
Closes: #6288
I had forgotten that we already strip punctuation from parameter names, so we merely need to treat integer parameters correctly FTW. And document that
_
stripping!