aboutsummaryrefslogtreecommitdiffstats
path: root/src/federation/fold.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/federation/fold.rs')
-rw-r--r--src/federation/fold.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/federation/fold.rs b/src/federation/fold.rs
index fddedc0..3ebeebf 100644
--- a/src/federation/fold.rs
+++ b/src/federation/fold.rs
@@ -341,6 +341,12 @@ impl State {
ballots
}
+ /// 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> {
+ self.proposed.get(proposal)
+ }
+
/// The version event writing the proposal of hash `proposal` on the current version,
/// where it passed here: on the `true` votes of the first parties by name that pass it,
/// each party's of the lowest ID, so that nodes holding those votes write the same.