diff --git a/nano/node/vote_generator.cpp b/nano/node/vote_generator.cpp index a9ffaa785f..bbaa27cd75 100644 --- a/nano/node/vote_generator.cpp +++ b/nano/node/vote_generator.cpp @@ -316,6 +316,8 @@ void nano::vote_generator::run () nano::container_info nano::vote_generator::container_info () const { + nano::lock_guard guard{ mutex }; + nano::container_info info; info.put ("candidates", candidates.size ()); info.put ("requests", requests.size ());