diff options
author | Determinant <ted.sybil@gmail.com> | 2019-08-23 13:46:13 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2019-08-23 13:46:13 -0400 |
commit | 870d09e53d93eee04e06fd225bfe4b124b7610aa (patch) | |
tree | aa1a36aa8634f718db990507428e14de21b84580 /include/hotstuff/entity.h | |
parent | 1e2bceedc30e41964345acc8f0bdd734e766e1f6 (diff) |
fix bugs
Diffstat (limited to 'include/hotstuff/entity.h')
-rw-r--r-- | include/hotstuff/entity.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/hotstuff/entity.h b/include/hotstuff/entity.h index 12d92cc..b3bf6a8 100644 --- a/include/hotstuff/entity.h +++ b/include/hotstuff/entity.h @@ -186,15 +186,9 @@ class Block { const uint256_t &get_hash() const { return hash; } - bool verify(const ReplicaConfig &config) const { - if (qc && !qc->verify(config)) return false; - return true; - } + bool verify(const HotStuffCore *hsc) const; - promise_t verify(const ReplicaConfig &config, VeriPool &vpool) const { - return (qc ? qc->verify(config, vpool) : - promise_t([](promise_t &pm) { pm.resolve(true); })); - } + promise_t verify(const HotStuffCore *hsc, VeriPool &vpool) const; int8_t get_decision() const { return decision; } |