From 9562b457cfbcc53d2a6319333ec26508ea4fa293 Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Mon, 23 Mar 2026 09:57:53 +0700 Subject: [PATCH] chore: remove stale Peer-level RNG forwarders All callsites now go through ce() consistently. --- src/test/consensus/ConsensusRng_test.cpp | 2 +- src/test/csf/Peer.h | 16 +--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/test/consensus/ConsensusRng_test.cpp b/src/test/consensus/ConsensusRng_test.cpp index 56f65a434..2e843ec4e 100644 --- a/src/test/consensus/ConsensusRng_test.cpp +++ b/src/test/consensus/ConsensusRng_test.cpp @@ -318,7 +318,7 @@ public: observer->ce().likelyParticipants_.count(validator->id) == 1); observer->ce().pendingCommits_[validator->id] = sha512Half(42u); - BEAST_EXPECT(observer->hasQuorumOfCommits()); + BEAST_EXPECT(observer->ce().hasQuorumOfCommits()); } void diff --git a/src/test/csf/Peer.h b/src/test/csf/Peer.h index 3a498706f..249c4a793 100644 --- a/src/test/csf/Peer.h +++ b/src/test/csf/Peer.h @@ -1071,7 +1071,7 @@ struct Peer const bool consensusFail = result.state == ConsensusState::MovedOn; auto const seq = static_cast(prevLedger.seq()) + 1; - finalizeRoundEntropy(seq); + ce().finalizeRoundEntropy(seq); TxSet const acceptedTxs = injectTxs(prevLedger, result.txns); Ledger const newLedger = oracle.accept( @@ -1174,20 +1174,6 @@ struct Peer return consensusParms; } - // --- RNG: forwarded to ce() for test access --- - - void - finalizeRoundEntropy(std::uint32_t seq) - { - ce().finalizeRoundEntropy(seq); - } - - bool - hasQuorumOfCommits() const - { - return ce().hasQuorumOfCommits(); - } - // Not interested in tracking consensus mode changes for now void onModeChange(ConsensusMode, ConsensusMode)