diff --git a/nano/core_test/vote_processor.cpp b/nano/core_test/vote_processor.cpp index 5ff9b92440..0ac38b5bef 100644 --- a/nano/core_test/vote_processor.cpp +++ b/nano/core_test/vote_processor.cpp @@ -57,7 +57,8 @@ TEST (vote_processor, flush) auto channel (std::make_shared (node.network.udp_channels, node.network.endpoint (), node.network_params.protocol.protocol_version)); for (unsigned i = 0; i < 2000; ++i) { - node.vote_processor.vote (vote, channel); + auto new_vote (std::make_shared (*vote)); + node.vote_processor.vote (new_vote, channel); ++vote->sequence; // invalidates votes without signing again } node.vote_processor.flush ();