You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node: the registry projection ignores NodeIdBound, so one operator can hold several active NodeIds #2845
Source: security review at b5e29ae (2026-11-05). Each claim below was re-read on disk by independent verifiers.
registry_route_topic0s (crates/node/src/dht/capacity_bond_registry.rs:925) follows 8 CapacityBond events. NodeIdBound is not one of them, and crates/node has no handler for it. bindNodeId on an active operator rewrites _nodes[msg.sender].nodeId and emits only NodeIdBound (contracts/src/CapacityBond.sol:1021-1025).
on_registered and on_deregistered key on the event's NodeId. So register(A), bind(B), deregister (emits B, so A stays), register(B), bind(C), and so on, leaves A, B and C all active and bound to one operator until each node's 15-minute resync (:657). A scratch test against the sink confirmed this.
Consequences:
the bound on the routing table and record store holds per operator only after the resync;
a rotated iroh key stays active for up to 15 min after decdn node rotate-key, while ADR 019:115 says one block.
#2708 fixed unbonded insertion; this is the case of one operator holding several NodeIds.
Route NodeIdBound; on it, re-read nodeIdOf(operator) and replace the operator's previous NodeId, so at most one NodeId per operator is active
Extend route_topic0s_covers_every_projection_event, and add a rebind test
Edited: the Slashed, Bonded and SlashReversed part was removed. Slashing is retired (#2917, #2938), and the bond is being replaced, so only the NodeIdBound case remains.
changed the title [-]node: the staker set ignores NodeIdBound, Slashed, Bonded and SlashReversed, so one bond can hold several active NodeIds[/-][+]node: the registry projection ignores NodeIdBound, so one operator can hold several active NodeIds[/+]on Nov 23, 2026
Moot after #2899 (90e2c23), which removed registry_route_topic0s. The registry no longer follows CapacityBond events. It re-reads a getRegisteredNodes snapshot every 5 minutes and swaps it in whole, with one NodeId per operator (crates/node/src/dht/capacity_bond_registry.rs), so one operator cannot hold several active NodeIds. What is left is the refresh interval: a rotated key stays active for up to one refresh (5 minutes).
Activity
[-]node: the staker set ignores NodeIdBound, Slashed, Bonded and SlashReversed, so one bond can hold several active NodeIds[/-][+]node: the registry projection ignores NodeIdBound, so one operator can hold several active NodeIds[/+]yigitdot commentedon Nov 26, 2026
Moot after #2899 (90e2c23), which removed
registry_route_topic0s. The registry no longer follows CapacityBond events. It re-reads agetRegisteredNodessnapshot every 5 minutes and swaps it in whole, with one NodeId per operator (crates/node/src/dht/capacity_bond_registry.rs), so one operator cannot hold several active NodeIds. What is left is the refresh interval: a rotated key stays active for up to one refresh (5 minutes).