Module agora.consensus.Ledger

The Ledger class binds together other components to provide a consistent view of the state of the node.

The Ledger acts as a bridge between other components, e.g. the UTXOSet, EnrollmentManager, IBlockStorage, etc... While the Node is the main object in Agora, the Ledger is the second most important class, handling all business logic, relying on the the Node for anything related to network communicatiion.

Classes

NameDescription
NodeLedger The Ledger class held by a node
ValidatingLedger A ledger that participate in the consensus protocol