mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-28 07:48:01 +00:00
updateOurPositions built a 64-character hex string from the transaction id plus two std::to_string number conversions, then attached them to a span event. That ran for every dispute that flipped position, on every establish tick of every consensus round, whether or not anything was recording. The three strings and the event have no other consumer; the vote change itself (mutableSet insert/erase) is untouched. The block now sits behind if (span). With telemetry compiled out the stub's operator bool is a literal false, so it is eliminated; with telemetry on it is also skipped when the span is null because the establish context was never captured. The guard is inside the function body, so Consensus<Adaptor>'s adaptor interface is unchanged and the csf::Peer simulator is unaffected.
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.