Show / Hide Table of Contents

    Class DeltaElector

    Inheritance
    System.Object
    DeltaElector
    Implements
    IDeltaElector
    System.IObserver<FavouriteDeltaBroadcast>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Catalyst.Core.Modules.Consensus.Deltas
    Assembly: Catalyst.Core.Modules.Consensus.dll
    Syntax
    public class DeltaElector : IDeltaElector, IObserver<FavouriteDeltaBroadcast>

    Constructors

    | Improve this Doc View Source

    DeltaElector(IMemoryCache, IDeltaProducersProvider, IHashProvider, ILogger)

    Declaration
    public DeltaElector(IMemoryCache candidatesCache, IDeltaProducersProvider deltaProducersProvider, IHashProvider hashProvider, ILogger logger)
    Parameters
    Type Name Description
    IMemoryCache candidatesCache
    IDeltaProducersProvider deltaProducersProvider
    IHashProvider hashProvider
    ILogger logger

    Methods

    | Improve this Doc View Source

    GetCandidateListCacheKey(FavouriteDeltaBroadcast, IHashProvider)

    Declaration
    public static string GetCandidateListCacheKey(FavouriteDeltaBroadcast candidate, IHashProvider hashProvider)
    Parameters
    Type Name Description
    FavouriteDeltaBroadcast candidate
    IHashProvider hashProvider
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetCandidateListCacheKey(MultiHash)

    Declaration
    public string GetCandidateListCacheKey(MultiHash previousDeltaHash)
    Parameters
    Type Name Description
    MultiHash previousDeltaHash
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetMostPopularCandidateDelta(MultiHash)

    Declaration
    public CandidateDeltaBroadcast GetMostPopularCandidateDelta(MultiHash previousDeltaDfsHash)
    Parameters
    Type Name Description
    MultiHash previousDeltaDfsHash
    Returns
    Type Description
    CandidateDeltaBroadcast
    | Improve this Doc View Source

    OnCompleted()

    Declaration
    public void OnCompleted()
    | Improve this Doc View Source

    OnError(Exception)

    Declaration
    public void OnError(Exception error)
    Parameters
    Type Name Description
    System.Exception error
    | Improve this Doc View Source

    OnNext(FavouriteDeltaBroadcast)

    Declaration
    public void OnNext(FavouriteDeltaBroadcast candidate)
    Parameters
    Type Name Description
    FavouriteDeltaBroadcast candidate

    Implements

    IDeltaElector
    System.IObserver<T>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network