diff options
author | Determinant <ted.sybil@gmail.com> | 2019-07-06 19:01:33 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2019-07-06 19:01:33 -0400 |
commit | 7a52e54b14eed096acce1c224ab46626f7c8cbaf (patch) | |
tree | fac3fd58092cc50fc7168ff5febbdd688015c6c8 /src/hotstuff.cpp | |
parent | 24b6cea7be8b78eaa3681d6274d671057ed112b5 (diff) |
...
Diffstat (limited to 'src/hotstuff.cpp')
-rw-r--r-- | src/hotstuff.cpp | 11 |
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()); |