Class Ledger
This class represents a ledger and is a collection of accounts and data store.
Inheritance
System.Object
Ledger
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 SourceLedger(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 SourceAccounts
Declaration
public IAccountRepository Accounts { get; }
Property Value
Type | Description |
---|---|
IAccountRepository |
IsSynchonising
Declaration
public bool IsSynchonising { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LatestKnownDelta
Declaration
public MultiHash LatestKnownDelta { get; }
Property Value
Type | Description |
---|---|
MultiHash |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
SaveAccountState(Account)
Declaration
public bool SaveAccountState(Account account)
Parameters
Type | Name | Description |
---|---|---|
Account | account |
Returns
Type | Description |
---|---|
System.Boolean |
Update(MultiHash)
Declaration
public void Update(MultiHash deltaHash)
Parameters
Type | Name | Description |
---|---|---|
MultiHash | deltaHash |
Implements
System.IDisposable