diff options
author | Determinant <[email protected]> | 2018-08-16 23:56:59 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-08-16 23:56:59 -0400 |
commit | 20500e74613f69f937e404cbabb3982da3b72881 (patch) | |
tree | 5e35b68649d39ccaf8690a9f4b82eeadfef66f8f /include/hotstuff/liveness.h | |
parent | 055dd5432a60954199ecc167831a4bf588e3ae84 (diff) |
fix vheight bug in self-voting
Diffstat (limited to 'include/hotstuff/liveness.h')
-rw-r--r-- | include/hotstuff/liveness.h | 4 |
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(); }); |