Skip to content

downstairs: allow capping the negotiated message version - #2048

Open
leftwo wants to merge 1 commit into
alan/been-active-v14-negotiatefrom
alan/been-active-v14-ds-max-version
Open

leftwo wants to merge 1 commit into
alan/been-active-v14-negotiatefrom
alan/been-active-v14-ds-max-version

Conversation

@leftwo

@leftwo leftwo commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Add DownstairsBuilder::set_max_message_version so tests can run a downstairs
that only supports older message versions. The capped list is stored in DownstairsFlags
and used when answering HereIAm.

Log this manually set downstairs' message versions at startup instead of
CRUCIBLE_MESSAGE_VERSION.

Add matching plumbing to the downstairs unit test helpers and to TestDownstairs and
TestDownstairsSet in the integration tests, which keep the cap across reboots.

Going forward we can use this ability to build more complicated tests as the v14 work
continues.

Add DownstairsBuilder::set_max_message_version so tests can run a
downstairs that only supports older message versions.  The capped
list is stored in DownstairsFlags and used when answering HereIAm.

Log this manually set downstairs' message versions at startup
instead of CRUCIBLE_MESSAGE_VERSION.

Add matching plumbing to the downstairs unit test helpers and to
TestDownstairs and TestDownstairsSet in the integration tests, which
keep the cap across reboots.

Going forward we can use this ability to build more complicated
tests as the v14 work continues.
@leftwo
leftwo requested a review from jmpesp October 16, 2026 19:15
@leftwo
leftwo added this pull request to stack #2045 October 16, 2026 19:48
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.

1 participant