Skip to content

Several very minor quality of life tweaks - #160

Merged
ejj merged 4 commits into
NetSys:mainfrom
ejj:pr-tweaks
Jun 15, 2026
Merged

ejj merged 4 commits into
NetSys:mainfrom
ejj:pr-tweaks

Conversation

@ejj

@ejj ejj commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

No description provided.

ejj added 4 commits June 13, 2026 21:24
Before this patch, the gossip loop read the message generation and the
trust derivation before calling `change_sig.borrow_and_update()`. A
local signed-state change updates the trust derivation and bumps the
message generation as two separate steps, observed by separate tasks.
If a notification landed in the window between those reads and the
acknowledge, the signal was marked seen without influencing the
iteration that just ran, so the update sat idle until the next
periodic tick instead of re-waking the loop.

This commit instead acknowledges the signal (and resets the tick) up
front, before reading the derivation and generation. Any notification
that arrives during the reads now leaves the signal unseen, so the
next `changed()` wakes the loop immediately and convergence no longer
waits on the interval.
Simple helper to print the node's IMID.

@KerneyJ KerneyJ left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@ejj
ejj merged commit 802ac07 into NetSys:main Jun 15, 2026
1 check passed
@ejj
ejj deleted the pr-tweaks branch June 15, 2026 03:02
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