From e8df19506783a8217d7c25435c93866e1aee8f23 Mon Sep 17 00:00:00 2001 From: RickiNano <81099017+RickiNano@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:40:53 +0100 Subject: [PATCH] Minimum value zero or higher --- nano/node/nodeconfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nano/node/nodeconfig.cpp b/nano/node/nodeconfig.cpp index 60c9fc50d1..a437a930a6 100644 --- a/nano/node/nodeconfig.cpp +++ b/nano/node/nodeconfig.cpp @@ -465,9 +465,9 @@ nano::error nano::node_config::deserialize_toml (nano::tomlconfig & toml) { toml.get_error ().set ("active_elections_size must be greater than 250"); } - if (max_unchecked_blocks < 1) + if (max_unchecked_blocks < 0) { - toml.get_error ().set ("max_unchecked_blocks must be greater than 0"); + toml.get_error ().set ("max_unchecked_blocks must be 0 or higher"); } if (bandwidth_limit > std::numeric_limits::max ()) {