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] Add: link/relink-decision handlers to Core #94
Add two pure-local Core methods on BaseCore (src/node/core.rs) that wrap the lookup-table primitives for message handling: a link-decision method wrapping try_link (backs GetLinkOp and BuddyOp-match handling) and a relink-decision method wrapping try_relink (backs CheckNeighborOp handling). Network-agnostic, mirroring search_by_id. See docs/protocol/concurrent-insert.md, Section 9 (Core surface) and Section 4.3 (the wrapped primitives' outcome types).
Files
src/node/core.rs — two new Core trait methods on BaseCore.
src/node/core_test.rs — pure-local unit tests (no mock network).
Acceptance Criteria
The link-decision method returns the same LinkOutcometry_link would produce for the given (level, direction, candidate).
The relink-decision method returns the same RelinkOutcometry_relink would produce for the given (level, direction, claimant).
Both are thin wrappers — no lock logic duplicated; try_link/try_relink remain the only place a table entry is written.
Activity