Skip to content

Deduplicate refreshNodeStatuses guard and node-row rebuild#552

Merged
DRadmir merged 1 commit into
mainfrom
wt1/networks-refresh-dedup
Jun 23, 2026
Merged

Deduplicate refreshNodeStatuses guard and node-row rebuild#552
DRadmir merged 1 commit into
mainfrom
wt1/networks-refresh-dedup

Conversation

@DRadmir

@DRadmir DRadmir commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Extract the repeated "still current chain + nonce" guard into updateNodesIfCurrent and the currentNode/buildNodeRows rebuild into State.refreshedNodeRows, applied to the per-node result and final update blocks of refreshNodeStatuses. The empty and loading blocks keep their distinct guards. No behavior change — node statuses (latency, latest block, selected node) smoke-tested on emulator.

Extract the shared 'still current chain + nonce' guard into updateNodesIfCurrent and the currentNode/buildNodeRows rebuild into State.refreshedNodeRows, applied to the per-node result and final update blocks. The empty and loading blocks keep their distinct guards. Behavior unchanged — node statuses smoke-tested on emulator.
@DRadmir DRadmir self-assigned this Jun 22, 2026
@DRadmir DRadmir merged commit 9c528bf into main Jun 23, 2026
2 checks passed
@DRadmir DRadmir deleted the wt1/networks-refresh-dedup branch June 23, 2026 08: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.

1 participant