From 652b6ac27a5f86af8f442321a5b4abe5e6c3d2b9 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 12 Sep 2018 02:15:03 -0400 Subject: create branch nsdi-eval --- src/hotstuff_app.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/hotstuff_app.cpp b/src/hotstuff_app.cpp index 014fe16..16d4abf 100644 --- a/src/hotstuff_app.cpp +++ b/src/hotstuff_app.cpp @@ -83,12 +83,12 @@ class HotStuffApp: public HotStuff { #ifndef HOTSTUFF_ENABLE_BENCHMARK HOTSTUFF_LOG_INFO("replicated %s", std::string(fin).c_str()); #endif - auto it = unconfirmed.find(fin.cmd_hash); - if (it != unconfirmed.end()) - { - it->second.resolve(fin); - unconfirmed.erase(it); - } + //auto it = unconfirmed.find(fin.cmd_hash); + //if (it != unconfirmed.end()) + //{ + // it->second.resolve(fin); + // unconfirmed.erase(it); + //} } public: @@ -264,13 +264,13 @@ void HotStuffApp::client_request_cmd_handler(MsgReqCmd &&msg, Conn &conn) { }); else { - auto it = unconfirmed.find(cmd_hash); - if (it == unconfirmed.end()) - it = unconfirmed.insert( - std::make_pair(cmd_hash, promise_t([](promise_t &){}))).first; - it->second.then([this, addr](const Finality &fin) { - cn.send_msg(MsgRespCmd(std::move(fin)), addr); - }); + //auto it = unconfirmed.find(cmd_hash); + //if (it == unconfirmed.end()) + // it = unconfirmed.insert( + // std::make_pair(cmd_hash, promise_t([](promise_t &){}))).first; + //it->second.then([this, addr](const Finality &fin) { + // cn.send_msg(MsgRespCmd(std::move(fin)), addr); + //}); } } -- cgit v1.2.3-70-g09d2