Skip to content

node: a DHT answer that names only the requester skips the origin-directory fallback #2534

Closed

Description

@thiras

Problem

discover (crates/node/src/node_origin/mod.rs) falls back to the origin directory only when the DHT answer is empty. open_pull_leg (crates/node/src/node_origin/pull_leg.rs) drops the requester from the providers after that decision. So when the requester is the only DHT provider for the hash — a partial holder asking a bonded non-holder for the blocks it lacks — the leg ends with no provider and refuses NotFound, without asking the directory that lists the origin.

Since #2533 the refusal line shows this as path=pull_leg_miss source=dht discovered=0.

Fix

Drop the requester inside discover, before the empty check, so the directory fallback runs on a DHT answer that named only the requester. One journey: the DHT record names the leaf's own node id, the directory lists the origin, the serve fills from the origin.

Found in the review of #2533.

Activity

  1. added
    area:node
    on Oct 18, 2026
  2. self-assigned this
    on Oct 18, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 18, 2026
  4. moved this from In progress to Done in deCDNon Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:node

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions