mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix duplicate validation and manifest suppression
RIPD-1636 RIPD-1638 RIPD-1632
This commit is contained in:
@@ -641,8 +641,10 @@ OverlayImpl::onManifests (
|
||||
if (auto mo = Manifest::make_Manifest (s))
|
||||
{
|
||||
uint256 const hash = mo->hash ();
|
||||
if (!hashRouter.addSuppressionPeer (hash, from->id ()))
|
||||
if (!hashRouter.addSuppressionPeer (hash, from->id ())) {
|
||||
JLOG(journal.info()) << "Duplicate manifest #" << i + 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (! app_.validators().listed (mo->masterKey))
|
||||
{
|
||||
@@ -685,7 +687,8 @@ OverlayImpl::onManifests (
|
||||
}
|
||||
else
|
||||
{
|
||||
JLOG(journal.info()) << "Bad manifest #" << i + 1;
|
||||
JLOG(journal.info()) << "Bad manifest #" << i + 1 <<
|
||||
": " << to_string(result);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user