Configurable handling of untrusted validations and proposals

This commit is contained in:
Richard Holland
2021-11-17 09:45:21 +00:00
committed by Nik Bougalis
parent bf013c02ad
commit 6746b863b3
5 changed files with 54 additions and 20 deletions

View File

@@ -2250,7 +2250,7 @@ NetworkOPsImp::recvValidation(
// We will always relay trusted validations; if configured, we will
// also relay all untrusted validations.
return app_.config().RELAY_UNTRUSTED_VALIDATIONS || val->isTrusted();
return app_.config().RELAY_UNTRUSTED_VALIDATIONS == 1 || val->isTrusted();
}
Json::Value