Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

RFC: Extend STORE protocol to give meta information about capabilities in-protocol #355

@oskarth

Description

@oskarth

Problem

STORE protocol is symmetric, and just knowing a peer is using STORE doesn't tell you much about what they are storing, if anything. The node can primarily be a "server" node or a "client" node.

Proposed solution

There are a few different dimensions of information that are desirable:

  • Are they persisting messages at all? For which topics? (e.g. default pubsub topic to start with)
  • For how long are they store? (7d retention policy e.g.)
  • For how long have they been online (e.g. online window in epochs, assuming honest => extend with checks)

This informs a peer with enough data to know if:

  • they should ask some other peer
  • they should ask more than one peer

Rought sketch for protobufs:

RPC {
  HistoryQuery
  HistoryResponse
  MetaRequest
  MetaResponse

Acceptance criteria

  • Rough consensus
  • Raw spec

Notes

Adaptive node discussion context: #87

Additionally do similar for FILTER.

cc @staheri14 @jm-clius

also fyi @cammellos re core pov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions