Skip to content

smite-scenarios: name or derive test constants - #288

Merged
morehouse merged 2 commits into
masterfrom
name_and_derive_constants
Oct 16, 2026
Merged

morehouse merged 2 commits into
masterfrom
name_and_derive_constants

Conversation

@morehouse

Copy link
Copy Markdown
Collaborator

Eliminates a few unnecessary magic constants.

Depends on #286.

@NishantBansal2003 NishantBansal2003 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Needs a rebase on top of #287

@erickcestari erickcestari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The nit is not relevant. Feel free to merge as it's if you prefer.

Comment on lines +584 to +586
for id in [TEMPORARY_CHANNEL_ID, SECOND_TEMPORARY_CHANNEL_ID] {
assert!(fx.negotiation(&id).accept_channel.is_some());
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
for id in [TEMPORARY_CHANNEL_ID, SECOND_TEMPORARY_CHANNEL_ID] {
assert!(fx.negotiation(&id).accept_channel.is_some());
}
for id in [TEMPORARY_CHANNEL_ID, SECOND_TEMPORARY_CHANNEL_ID] {
assert!(fx.negotiation(&id).accept_channel.is_some(), "no accept_channel recorded for {id}");
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Base automatically changed from second_channel_helpers to master October 16, 2026 21:06
@morehouse
morehouse force-pushed the name_and_derive_constants branch from 8ab3ab2 to 48c5797 Compare October 16, 2026 21:06
Name the temporary channel IDs used in the sample negotiations and the
SCID used in funding tests.
@morehouse
morehouse force-pushed the name_and_derive_constants branch from 48c5797 to 1359f1b Compare October 16, 2026 21:15
@morehouse
morehouse merged commit 068c982 into master Oct 16, 2026
5 checks passed
@morehouse
morehouse deleted the name_and_derive_constants branch October 16, 2026 21:32
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