aboutsummaryrefslogtreecommitdiff
path: root/src/hotstuff.cpp
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-07-06 19:01:33 -0400
committerDeterminant <ted.sybil@gmail.com>2019-07-06 19:01:33 -0400
commit7a52e54b14eed096acce1c224ab46626f7c8cbaf (patch)
treefac3fd58092cc50fc7168ff5febbdd688015c6c8 /src/hotstuff.cpp
parent24b6cea7be8b78eaa3681d6274d671057ed112b5 (diff)
...
Diffstat (limited to 'src/hotstuff.cpp')
-rw-r--r--src/hotstuff.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/hotstuff.cpp b/src/hotstuff.cpp
index 69501c0..5ae0fe6 100644
--- a/src/hotstuff.cpp
+++ b/src/hotstuff.cpp
@@ -80,17 +80,6 @@ void HotStuffBase::exec_command(uint256_t cmd_hash, commit_cb_t callback) {
cmd_pending.enqueue(std::make_pair(cmd_hash, callback));
}
-void HotStuffBase::do_elected() {
- // TODO: improve this
- tcall.async_call([this](salticidae::ThreadCall::Handle &) {
- HOTSTUFF_LOG_PROTO("reproposing waiting commands");
- std::vector<uint256_t> cmds;
- for (auto &p: decision_waiting)
- cmds.push_back(p.first);
- on_propose(cmds, pmaker->get_parents());
- });
-}
-
void HotStuffBase::on_fetch_blk(const block_t &blk) {
#ifdef HOTSTUFF_BLK_PROFILE
blk_profiler.get_tx(blk->get_hash());