Skip to content
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

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

rustyrussell
Copy link
Contributor

@rustyrussell rustyrussell commented Aug 25, 2020

[Based on #3963]

This means we at least check that non-static-remotekey peers are not completely broken!
Changelog-None

@rustyrussell rustyrussell added this to the v0.9.1 milestone Aug 25, 2020
@rustyrussell rustyrussell changed the title Dev flat to set features Dev flag to set features Aug 25, 2020
"""Smoke test for a channel without option_static_remotekey"""
l1, l2 = node_factory.line_graph(2,
opts=[{},
{'dev-force-features': '////'}])
Copy link
Collaborator

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);
Copy link
Collaborator

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 ","?

Copy link
Contributor Author

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...

Copy link
Collaborator

@niftynei niftynei left a 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]>
@rustyrussell
Copy link
Contributor Author

Trivial rebase after #3963 merge.

@rustyrussell rustyrussell merged commit e4b5a1e into ElementsProject:master Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants