aboutsummaryrefslogtreecommitdiff
path: root/src/hotstuff.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-07-19 14:43:35 -0400
committerDeterminant <[email protected]>2018-07-19 14:43:35 -0400
commit95316118206aeed718ae6260ef9b5a1a4a6dacd8 (patch)
treec0b2df4c8f020bb076c276069da066a4f43c32f8 /src/hotstuff.cpp
parent9e745354fe10f31b829f0c02a2aa464f391ffd19 (diff)
fix mem leak
Diffstat (limited to 'src/hotstuff.cpp')
-rw-r--r--src/hotstuff.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hotstuff.cpp b/src/hotstuff.cpp
index 6230d06..a37e872 100644
--- a/src/hotstuff.cpp
+++ b/src/hotstuff.cpp
@@ -334,6 +334,7 @@ void HotStuffBase::print_stat() const {
part_delivery_time = 0;
part_delivery_time_min = double_inf;
part_delivery_time_max = 0;
+#ifdef HOTSTUFF_MSG_STAT
LOG_INFO("-- sent opcode (10s) --");
auto &sent_op = pn.get_sent_by_opcode();
for (auto &op: sent_op)
@@ -376,6 +377,7 @@ void HotStuffBase::print_stat() const {
LOG_INFO("sent: %lu", nsent);
LOG_INFO("recv: %lu", nrecv);
LOG_INFO("====== end stats ======");
+#endif
}
promise_t HotStuffBase::async_decide(const uint256_t &cmd_hash) {