LedgerCell
interface LedgerCell
Where a FairShareAllocator reads the ledger and lands its writes.
In :kuilt-heddle this is the replicator that keeps the ledger converged across peers. For a single process it can be as small as a var holding the latest EntitlementLedger.
Functions
Link copied to clipboard
Run transform against the ledger as it stands at the moment of writing and apply the patch it returns, or change nothing when it returns null. Reading and writing are one step: no other write may land between them, because the allocator decides each grant on exactly the state that grant lands on.