Fix duplicate validation and manifest suppression

RIPD-1636
RIPD-1638
RIPD-1632
This commit is contained in:
wilsonianb
2018-05-31 17:19:42 -05:00
committed by Mike Ellery
parent f0cc7c4c8d
commit 31e511afcf
6 changed files with 44 additions and 20 deletions

View File

@@ -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