diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2017-05-21 14:27:55 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2017-05-21 14:27:55 +0200 |
| commit | e1e1e9ac34ab70c3a1f2344361c7e04e5f15c3bd (patch) | |
| tree | bf9c27edae6fb6c6f0c186cc06db92378e53055b /node/node.cpp | |
| parent | ce2d83a434cea8a6317690aadbb478a58858ad5b (diff) | |
| download | cmix-e1e1e9ac34ab70c3a1f2344361c7e04e5f15c3bd.tar.gz cmix-e1e1e9ac34ab70c3a1f2344361c7e04e5f15c3bd.tar.bz2 cmix-e1e1e9ac34ab70c3a1f2344361c7e04e5f15c3bd.zip | |
Removes bias from generating random curve points.
Diffstat (limited to 'node/node.cpp')
| -rw-r--r-- | node/node.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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<cmix_proto::RealPre> arena; cmix_proto::RealPre& realpre = arena.get(); |
