mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Add toDisplayString(ConsensusMode) helper that returns Title Case names (Proposing, Observing, Wrong Ledger, Switched Ledger) for use in OTel span attributes and Grafana dashboards. The existing to_string() is preserved unchanged for log output stability. Updated call sites: - RCLConsensus.cpp: onClose, onModeChange, startRoundInternal - TracingMacros.cpp: test attribute value Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Unit tests
This directory contains unit tests for the project. The difference from existing src/test folder
is that we switch to 3rd party testing framework (gtest). We intend to gradually move existing tests
from our own framework to gtest and such tests will be moved to this new folder.