From 870d09e53d93eee04e06fd225bfe4b124b7610aa Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 23 Aug 2019 13:46:13 -0400 Subject: fix bugs --- include/hotstuff/entity.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'include/hotstuff/entity.h') 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; } -- cgit v1.2.3