Note: this gets us into a good place for pure operations (no primitive Seq ops outside of Ledger.hs; LogIndex used for all indexing so we're no longer tied to Int), but we'll still need to centralize log modification and access when we want to go with a virtual-memory structure -- our pure approach of grabbing the entire ledger (e.g. AppendEntries.hs) and calling pure functions on it won't cut it.
Note: this gets us into a good place for pure operations (no primitive Seq ops outside of Ledger.hs;
LogIndex
used for all indexing so we're no longer tied toInt
), but we'll still need to centralize log modification and access when we want to go with a virtual-memory structure -- our pure approach of grabbing the entire ledger (e.g. AppendEntries.hs) and calling pure functions on it won't cut it.