pub struct FindValueResponse {
pub hash: ContentHash,
pub providers: Vec<Provider>,
pub closer_nodes: CloserNodes,
}Expand description
Response to a FindValueRequest (ADR 022 §Message Types).
providers is the responder’s known holders for hash (may be empty);
closer_nodes is up to K of the responder’s nearest NodeIds toward hash
in XOR keyspace, used by the requester to continue iterative lookup.
Responders MUST NOT emit more than MAX_PROVIDERS_PER_HASH providers or
more than MAX_CLOSER_NODES closer nodes — the wire-cost ceiling
(~2.3 KB) in ADR 022 §DHT Bandwidth Analysis depends on these bounds.
Fields§
§hash: ContentHashEchoes the requested hash.
providers: Vec<Provider>Nodes known to hold this hash, with per-holder coverage. May be
empty. Capped at MAX_PROVIDERS_PER_HASH; oversize values fail
decode.
closer_nodes: CloserNodesK closest nodes to hash in the responder’s routing table. The
CloserNodes type enforces the MAX_CLOSER_NODES cap at
construction and decode; oversize values fail decode.