aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-08-16 15:47:44 -0400
committerDeterminant <ted.sybil@gmail.com>2019-08-16 15:47:44 -0400
commit1e2bceedc30e41964345acc8f0bdd734e766e1f6 (patch)
treec3da31b7d64f164fd9576bbb415cdc38fc63777b
parenta442616edf97dc65f6e768d249eb318fa317c747 (diff)
remove dangling include
-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;