mirror of
https://github.com/Xahau/xahaud.git
synced 2026-04-29 15:37:46 +00:00
chore: remove stale Peer-level RNG forwarders
All callsites now go through ce() consistently.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user