Skip to content

BlockSearchRandom

Purpose

Search for a block along a random walk.

Reception

  • Storage \(\to\) BlockSearchTopic \(\to\) Storage

Structure

Field Type Description
block BlockId Block ID
domain Option<DomainIdentity> Restrict the random walk to a domain
requestor NodeIdentity Requestor's Peer ID

Behaviour

If the block is available locally, a [[BlockSearchResponse#blocksearchresponse] is returned to the requestor. Otherwise the request is forwarded to a random connected node. If a domain is given, the choice of random node is restricted to the given domain.

Triggers

  • Storage \(\to\) BlockSearchRandom \(\to\) Storage
  • Storage \(\to\) BlockResponse \(\to\) Storage