Show / Hide Table of Contents

    Interface IHastingsOriginator

    Namespace: Catalyst.Abstractions.P2P.Discovery
    Assembly: Catalyst.Abstractions.dll
    Syntax
    public interface IHastingsOriginator

    Properties

    | Improve this Doc View Source

    Neighbours

    A readonly list of the neighbours considered for at that stage of the node. This list will be used to progress if any of them is valid (HasValidCandidate()).

    Declaration
    INeighbours Neighbours { get; }
    Property Value
    Type Description
    INeighbours
    | Improve this Doc View Source

    Peer

    Declaration
    PeerId Peer { get; }
    Property Value
    Type Description
    PeerId
    | Improve this Doc View Source

    PnrCorrelationId

    Every time you the walk moves forward with a new Peer, it will ask that peer for its neighbours sending a new . This field stores the details for that request.

    Declaration
    ICorrelationId PnrCorrelationId { get; }
    Property Value
    Type Description
    ICorrelationId

    Methods

    | Improve this Doc View Source

    CreateMemento()

    creates a memento from current state

    Declaration
    IHastingsMemento CreateMemento()
    Returns
    Type Description
    IHastingsMemento
    | Improve this Doc View Source

    HasValidCandidate()

    Find out if the current state has any neighbour in a Responsive

    Declaration
    bool HasValidCandidate()
    Returns
    Type Description
    System.Boolean

    true if Neighbours contains a Responsive neighbour, false otherwise.

    | Improve this Doc View Source

    RestoreMemento(IHastingsMemento)

    Restores the state from a memento

    Declaration
    void RestoreMemento(IHastingsMemento hastingsMemento)
    Parameters
    Type Name Description
    IHastingsMemento hastingsMemento
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network