Skip to content

Add new been active messages for v14 - #2044

Merged
leftwo merged 6 commits into
mainfrom
alan/been-active-v14-msgs
Oct 19, 2026
Merged

leftwo merged 6 commits into
mainfrom
alan/been-active-v14-msgs

Conversation

@leftwo

@leftwo leftwo commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Add new message types for v14.

This just adds the message types into the enum. We don't use them yet.
Half of these comments will get updated as the rest of the work makes its way in.

@leftwo leftwo changed the title Alan/been active v14 msgs Add new been active messages for v14 Oct 14, 2026
@leftwo
leftwo force-pushed the alan/been-active-v14-msgs branch from 17c3970 to 6972b4f Compare October 14, 2026 18:09
@leftwo
leftwo changed the base branch from main to alan/been-active-v14 October 14, 2026 18:13
@leftwo
leftwo added this pull request to stack #2045 October 14, 2026 18:19
@leftwo
leftwo marked this pull request as ready for review October 14, 2026 18:23
@leftwo
leftwo requested a review from jmpesp October 14, 2026 18:23
@leftwo

leftwo commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

I'm messing around with the stacked PR stuff, let me know if the diff looks weird.
It should be based off of 2043, but github seems to think it needs a rebase onto main.
It won't get that till 2043 merged.

Base automatically changed from alan/been-active-v14 to main October 14, 2026 23:43
Add the new messages for protocol V14 to the end of Message struct.
The tags of every existing message are unchanged.  Nothing sends the
new messages yet.  The current protocol version stays at 13.
@leftwo
leftwo force-pushed the alan/been-active-v14-msgs branch from e86086e to 2c23388 Compare October 14, 2026 23:43
Comment thread protocol/src/lib.rs
//
// These belong with the negotiation messages above, but are placed here
// so that the wire tags of every V13 message are unchanged. They must
// only be sent on a connection that negotiated V14 or later.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let's add a space here, I think it will help readability

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

But, overall, I'm not happy how we have these grouped into nice sections, but then when we changed the
protocol, we had to append new ones on the end. i suppose it's our own fault for not doing a better job of versioning this struct.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

rust fmt slaps hand

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can't add a space here unless I turn off cargo fmt for the whole enum.

Comment thread protocol/src/lib.rs Outdated
BeenActivePlease,

/// Reply to `BeenActivePlease`. A region that has no record of being
/// active (including one created by an older downstairs) reports `false`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm having trouble parsing including one created by an older downstairs, what do you mean here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The comment is,.. yeah. Let me fix this.
I was meaning a downstairs that may have been active before, but we had no means of recording that would report false. I can word that better.

@leftwo
leftwo merged commit 558ccc3 into main Oct 19, 2026
17 checks passed
@leftwo
leftwo deleted the alan/been-active-v14-msgs branch October 19, 2026 23:24
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.

2 participants