mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-26 23:19:07 +00:00
MonitoredMode::set calls onModeChange on every round start, so the span was created whether or not the mode moved. A node with a steady mode therefore emitted one mode_change per round carrying mode_old == mode_new, which a live sweep confirmed on every round of both instrumented builds. The round span's own consensus_mode attribute is still written on every call, since that is where the round learns the mode it is running in.
Consensus
This directory contains the implementation of a generic consensus algorithm. The implementation follows a CRTP design, requiring client code to implement specific functions and types to use consensus in their application. The interface is undergoing refactoring and is not yet finalized.