diff --git a/src/runtime2/component/consensus.rs b/src/runtime2/component/consensus.rs index e4706c27995c39138d51ef1629058bcca6d0d004..db9a1e3c366b8118a8d58e038ea8d823741002d7 100644 --- a/src/runtime2/component/consensus.rs +++ b/src/runtime2/component/consensus.rs @@ -270,6 +270,11 @@ impl Consensus { } } + #[inline] + pub(crate) fn round_number(&self) -> u32 { + return self.round_index; + } + // ------------------------------------------------------------------------- // Managing sync state // -------------------------------------------------------------------------