mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Also report mismatched built ledger
This commit is contained in:
committed by
Nik Bougalis
parent
15aad1cb24
commit
61006e626d
@@ -136,14 +136,22 @@ void LedgerHistory::builtLedger (Ledger::ref ledger)
|
|||||||
|
|
||||||
if (entry->first != hash)
|
if (entry->first != hash)
|
||||||
{
|
{
|
||||||
|
bool mismatch (false);
|
||||||
|
|
||||||
if (entry->first.isNonZero() && (entry->first != hash))
|
if (entry->first.isNonZero() && (entry->first != hash))
|
||||||
{
|
{
|
||||||
WriteLog (lsERROR, LedgerMaster) << "MISMATCH: seq=" << index << " built:" << entry->first << " then:" << hash;
|
WriteLog (lsERROR, LedgerMaster) << "MISMATCH: seq=" << index << " built:" << entry->first << " then:" << hash;
|
||||||
|
mismatch = true;
|
||||||
}
|
}
|
||||||
if (entry->second.isNonZero() && (entry->second != hash))
|
if (entry->second.isNonZero() && (entry->second != hash))
|
||||||
{
|
{
|
||||||
WriteLog (lsERROR, LedgerMaster) << "MISMATCH: seq=" << index << " validated:" << entry->second << " accepted:" << hash;
|
WriteLog (lsERROR, LedgerMaster) << "MISMATCH: seq=" << index << " validated:" << entry->second << " accepted:" << hash;
|
||||||
|
mismatch = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mismatch)
|
||||||
|
++mismatch_counter_;
|
||||||
|
|
||||||
entry->first = hash;
|
entry->first = hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user