diff options
Diffstat (limited to 'src/federation/fold.rs')
| -rw-r--r-- | src/federation/fold.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/federation/fold.rs b/src/federation/fold.rs index 46f56e1..3670051 100644 --- a/src/federation/fold.rs +++ b/src/federation/fold.rs @@ -348,6 +348,11 @@ impl State { ballots } + /// The checkpoint's version: the one current where the store moved there, or started. + pub(crate) fn checkpoint_version(&self) -> &Version { + &self.versions[&self.checkpoint] + } + /// The version the proposal of hash `proposal` proposes, as JSON, where it holds one: /// whether it is a version is asked apart (`Version::read`). pub(crate) fn proposal(&self, proposal: &Id) -> Option<&Json> { |
