Interface ILedgerSynchroniser
Namespace: Catalyst.Core.Modules.Ledger
Assembly: Catalyst.Core.Modules.Ledger.dll
Syntax
public interface ILedgerSynchroniser
Properties
| Improve this Doc View SourceDeltaCache
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 SourceCacheDeltasBetween(MultiHash, MultiHash, CancellationToken)
Starts a process that retrieves the deltas between the
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> |