aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/hotstuff_app.cpp1
-rw-r--r--src/consensus.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/hotstuff_app.cpp b/examples/hotstuff_app.cpp
index a0fe80b..8bc092d 100644
--- a/examples/hotstuff_app.cpp
+++ b/examples/hotstuff_app.cpp
@@ -22,7 +22,6 @@
#include <random>
#include <unistd.h>
#include <signal.h>
-#include <event2/event.h>
#include "salticidae/stream.h"
#include "salticidae/util.h"
diff --git a/src/consensus.cpp b/src/consensus.cpp
index d9c1f64..7a577c5 100644
--- a/src/consensus.cpp
+++ b/src/consensus.cpp
@@ -229,7 +229,7 @@ void HotStuffCore::on_receive_vote(const Vote &vote) {
if (qsize >= config.nmajority) return;
if (!blk->voted.insert(vote.voter).second)
{
- LOG_WARN("duplicate vote from %d", vote.voter);
+ LOG_WARN("duplicate vote for %s from %d", get_hex10(vote.blk_hash).c_str(), vote.voter);
return;
}
auto &qc = blk->self_qc;