Npl outputs round limit. (#242)

This commit is contained in:
Ravin Perera
2021-02-15 14:50:03 +05:30
committed by GitHub
parent 0de7983504
commit 0937ca0bbe
6 changed files with 35 additions and 14 deletions

View File

@@ -144,7 +144,7 @@ class PatchConfig {
throw "Invalid consensus flag configured in patch file. Valid values: public|private";
if (config.npl != "public" && config.npl != "private")
throw "Invalid npl flag configured in patch file. Valid values: public|private";
if (config.round_limits.user_input_bytes < 0 || config.round_limits.user_output_bytes < 0)
if (config.round_limits.user_input_bytes < 0 || config.round_limits.user_output_bytes < 0 || config.round_limits.npl_output_bytes < 0)
throw "Invalid round limits.";
}
}