mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove deprecated 'accepted' parameter.
This commit is contained in:
committed by
Vinnie Falco
parent
663742e0d1
commit
bb251063fc
@@ -342,13 +342,12 @@ void Ledger::setAccepted (
|
||||
{
|
||||
// Used when we witnessed the consensus. Rounds the close time, updates the
|
||||
// hash, and sets the ledger accepted and immutable.
|
||||
assert (closed() && !info_.accepted);
|
||||
assert (closed());
|
||||
info_.closeTime = correctCloseTime
|
||||
? roundCloseTime (closeTime, closeResolution)
|
||||
: closeTime;
|
||||
info_.closeTimeResolution = closeResolution;
|
||||
info_.closeFlags = correctCloseTime ? 0 : sLCF_NoConsensusTime;
|
||||
info_.accepted = true;
|
||||
setImmutable ();
|
||||
}
|
||||
|
||||
@@ -361,7 +360,6 @@ void Ledger::setAccepted ()
|
||||
info_.closeTime = roundCloseTime(
|
||||
info_.closeTime, info_.closeTimeResolution);
|
||||
|
||||
info_.accepted = true;
|
||||
setImmutable ();
|
||||
}
|
||||
|
||||
|
||||
@@ -297,8 +297,8 @@ public:
|
||||
|
||||
void pushLedger (Ledger::pointer newLCL, Ledger::pointer newOL)
|
||||
{
|
||||
assert (! newLCL->info().open && newLCL->info().accepted);
|
||||
assert (newOL->info().open && !newOL->info().accepted);
|
||||
assert (! newLCL->info().open);
|
||||
assert (newOL->info().open);
|
||||
|
||||
{
|
||||
ScopedLockType ml (m_mutex);
|
||||
|
||||
@@ -552,12 +552,6 @@ Reader::readArray ( Token& tokenStart )
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
in ( Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4 )
|
||||
{
|
||||
return c == c1 || c == c2 || c == c3 || c == c4;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::decodeNumber ( Token& token )
|
||||
{
|
||||
|
||||
@@ -85,7 +85,6 @@ struct LedgerInfo
|
||||
// Once validated is true, it will never be set false at a later time.
|
||||
mutable
|
||||
bool validated = false;
|
||||
bool accepted = false;
|
||||
|
||||
// flags indicating how this ledger close took place
|
||||
int closeFlags = 0;
|
||||
|
||||
Reference in New Issue
Block a user