From e1e1e9ac34ab70c3a1f2344361c7e04e5f15c3bd Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sun, 21 May 2017 14:27:55 +0200 Subject: Removes bias from generating random curve points. --- node/node.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'node/node.cpp') diff --git a/node/node.cpp b/node/node.cpp index cb25431..dd6061a 100644 --- a/node/node.cpp +++ b/node/node.cpp @@ -1,4 +1,4 @@ - #include "node.hpp" +#include "node.hpp" #include "cmix.h" @@ -143,10 +143,6 @@ void Node::handle_message(Purgatory::iterator handle, cmix_proto::CMixMessage me } void Node::start_precomputation() { - if(performance) { - performance->send("pre_pre_start"); - } - BOOST_LOG_TRIVIAL(trace) << "Starting precomputation for " << messages.size() << " clients."; participants.clear(); @@ -154,6 +150,10 @@ void Node::start_precomputation() { start_timer_delayed_mix(); return; } + + if(performance) { + performance->send("pre_pre_start"); + } if(start_mix(&cmix_ctx, messages.size()) != no_error) { exit(-1); @@ -217,11 +217,11 @@ void Node::start_precomputation() { } void Node::start_realtime_phase() { - + if(performance) { performance->send("real_pre_start"); } - + ArenaMessage arena; cmix_proto::RealPre& realpre = arena.get(); -- cgit v1.2.3-70-g09d2