-
Notifications
You must be signed in to change notification settings - Fork 902
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
Dev flag to set features #3976
Dev flag to set features #3976
Conversation
"""Smoke test for a channel without option_static_remotekey""" | ||
l1, l2 = node_factory.line_graph(2, | ||
opts=[{}, | ||
{'dev-force-features': '////'}]) |
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.
Description says "comma", why does this use "/"?
if (tal_count(parts) != NUM_FEATURE_PLACE) | ||
return "Expected 5 feature sets (init, globalinit, node_announce, channel, bolt11) separated by /"; | ||
for (size_t i = 0; parts[i]; i++) { | ||
char **bits = tal_strsplit(tmpctx, parts[i], ",", STR_EMPTY_OK); |
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.
error above says "/", why does this split by ","?
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.
5 sets, separated by /, each a set of 0 or more feature bitnumbers separated by ,.
I didn't document thoroughly since it's a dev-only option...
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 98e05b5
And use it to smoke-test !option_static_remotekey. Signed-off-by: Rusty Russell <[email protected]>
98e05b5
to
9bc5c1b
Compare
Trivial rebase after #3963 merge. |
[Based on #3963]
This means we at least check that non-static-remotekey peers are not completely broken!
Changelog-None