Show / Hide Table of Contents

    Interface ILedgerSynchroniser

    Namespace: Catalyst.Core.Modules.Ledger
    Assembly: Catalyst.Core.Modules.Ledger.dll
    Syntax
    public interface ILedgerSynchroniser

    Properties

    | Improve this Doc View Source

    DeltaCache

    A cache used to store the full Delta object when a synchronisation is triggered.

    Declaration
    IDeltaCache DeltaCache { get; }
    Property Value
    Type Description
    IDeltaCache

    Methods

    | Improve this Doc View Source

    CacheDeltasBetween(MultiHash, MultiHash, CancellationToken)

    Starts a process that retrieves the deltas between the and the , and adds them to the cache.

    Declaration
    IEnumerable<MultiHash> CacheDeltasBetween(MultiHash latestKnownDeltaHash, MultiHash targetDeltaHash, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    MultiHash latestKnownDeltaHash

    Hash of the latest known Delta seen on the protocol, from the point of view of this node.

    MultiHash targetDeltaHash

    The hash of the delta up to which we want to synchronise the ledger.

    System.Threading.CancellationToken cancellationToken

    Provides a way to cancel the synchronisation task before it ends.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<MultiHash>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network