aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff/liveness.h
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-08-23 13:46:13 -0400
committerDeterminant <ted.sybil@gmail.com>2019-08-23 13:46:13 -0400
commit870d09e53d93eee04e06fd225bfe4b124b7610aa (patch)
treeaa1a36aa8634f718db990507428e14de21b84580 /include/hotstuff/liveness.h
parent1e2bceedc30e41964345acc8f0bdd734e766e1f6 (diff)
fix bugs
Diffstat (limited to 'include/hotstuff/liveness.h')
-rw-r--r--include/hotstuff/liveness.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hotstuff/liveness.h b/include/hotstuff/liveness.h
index b0373ed..452ecdc 100644
--- a/include/hotstuff/liveness.h
+++ b/include/hotstuff/liveness.h
@@ -73,6 +73,7 @@ class PMHighTail: public virtual PaceMaker {
void reg_hqc_update() {
hsc->async_hqc_update().then([this](const block_t &hqc) {
+ hqc_tail = hqc;
for (const auto &tail: hsc->get_tails())
if (check_ancestry(hqc, tail) && tail->get_height() > hqc_tail->get_height())
hqc_tail = tail;