Show / Hide Table of Contents

    Class Ledger

    This class represents a ledger and is a collection of accounts and data store.

    Inheritance
    System.Object
    Ledger
    Implements
    ILedger
    System.IDisposable
    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.Ledger
    Assembly: Catalyst.Core.Modules.Ledger.dll
    Syntax
    public class Ledger : ILedger, IDisposable

    Constructors

    | Improve this Doc View Source

    Ledger(IAccountRepository, IDeltaHashProvider, ILedgerSynchroniser, IMempool<MempoolDocument>, ILogger)

    Declaration
    public Ledger(IAccountRepository accounts, IDeltaHashProvider deltaHashProvider, ILedgerSynchroniser synchroniser, IMempool<MempoolDocument> mempool, ILogger logger)
    Parameters
    Type Name Description
    IAccountRepository accounts
    IDeltaHashProvider deltaHashProvider
    ILedgerSynchroniser synchroniser
    IMempool<MempoolDocument> mempool
    ILogger logger

    Properties

    | Improve this Doc View Source

    Accounts

    Declaration
    public IAccountRepository Accounts { get; }
    Property Value
    Type Description
    IAccountRepository
    | Improve this Doc View Source

    IsSynchonising

    Declaration
    public bool IsSynchonising { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    LatestKnownDelta

    Declaration
    public MultiHash LatestKnownDelta { get; }
    Property Value
    Type Description
    MultiHash

    Methods

    | Improve this Doc View Source

    Dispose()

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

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    | Improve this Doc View Source

    SaveAccountState(Account)

    Declaration
    public bool SaveAccountState(Account account)
    Parameters
    Type Name Description
    Account account
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Update(MultiHash)

    Declaration
    public void Update(MultiHash deltaHash)
    Parameters
    Type Name Description
    MultiHash deltaHash

    Implements

    ILedger
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network