aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff/liveness.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hotstuff/liveness.h')
-rw-r--r--include/hotstuff/liveness.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hotstuff/liveness.h b/include/hotstuff/liveness.h
index 5dfb2e0..6396fe3 100644
--- a/include/hotstuff/liveness.h
+++ b/include/hotstuff/liveness.h
@@ -52,8 +52,8 @@ class PMAllParents: public virtual PaceMaker {
for (b = blk;
b->get_height() > bqc->get_height();
b = b->get_parents()[0]);
- if (b == bqc && b->get_height() > bqc_tail->get_height())
- bqc_tail = b;
+ if (b == bqc && blk->get_height() > bqc_tail->get_height())
+ bqc_tail = blk;
}
reg_bqc_update();
});