chore: remove stale Peer-level RNG forwarders

All callsites now go through ce() consistently.
This commit is contained in:
Nicholas Dudfield
2026-03-23 09:57:53 +07:00
parent 724633ceb5
commit 9562b457cf
2 changed files with 2 additions and 16 deletions

View File

@@ -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

View File

@@ -1071,7 +1071,7 @@ struct Peer
const bool consensusFail = result.state == ConsensusState::MovedOn;
auto const seq = static_cast<std::uint32_t>(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)