mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor consensus:
Classes implementing the consensus process on Ripple are cleaned up in preparation for modularizations and compartmentalization. Functions and state related to inter-round consensus are moved out of NetworkOPs and into Consensus, where they are more effectively isolated. Some member functions are changed to free functions and some free functions have their scope reduced to specific translation units. * Track inter-round consensus state using new Consensus object * Devirtualize interfaces * Reduce NetworkOPs, Consensus and LedgerConsensus interfaces * Add comments
This commit is contained in:
@@ -397,13 +397,6 @@ public:
|
||||
mBuildingLedgerSeq.store (i);
|
||||
}
|
||||
|
||||
bool haveLedgerRange (std::uint32_t from, std::uint32_t to)
|
||||
{
|
||||
ScopedLockType sl (mCompleteLock);
|
||||
std::uint32_t prevMissing = mCompleteLedgers.prevMissing (to + 1);
|
||||
return (prevMissing == RangeSet::absent) || (prevMissing < from);
|
||||
}
|
||||
|
||||
bool haveLedger (std::uint32_t seq)
|
||||
{
|
||||
ScopedLockType sl (mCompleteLock);
|
||||
|
||||
Reference in New Issue
Block a user