[Valgrind] Uninitialized memory in distributed_work.no_peers test (#2384)

This commit is contained in:
Wesley Shillingford 2019-11-05 08:36:53 +00:00 committed by GitHub
commit 898e80f2eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ TEST (distributed_work, no_peers)
{
nano::system system (24000, 1);
auto node (system.nodes[0]);
nano::block_hash hash;
nano::block_hash hash{ 1 };
boost::optional<uint64_t> work;
std::atomic<bool> done{ false };
auto callback = [&work, &done](boost::optional<uint64_t> work_a) {