Skip to content

Commit

Permalink
[FOLD] Filter partial validations
Browse files Browse the repository at this point in the history
  • Loading branch information
bachase committed Jun 27, 2017
1 parent b9d8428 commit 57656bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ripple/app/misc/Validations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ class ValidationsImp : public Validations

auto pubKey = app_.validators ().getTrustedKey (signer);

// Do not process or forward partial validations.
if(!val->isFull())
return false;

if (!val->isTrusted() && pubKey)
val->setTrusted();

Expand Down

0 comments on commit 57656bc

Please sign in to comment.