aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff/entity.h
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-08-30 20:45:38 -0400
committerDeterminant <ted.sybil@gmail.com>2019-08-30 20:45:38 -0400
commit5ffbe0da60782ea2aa7f2fd872b8880333620133 (patch)
tree89c8b99426d5820ae07539578b3f97e3a6a051ca /include/hotstuff/entity.h
parent9b2128d042187b510b298cfbd724646b0300097e (diff)
parent870d09e53d93eee04e06fd225bfe4b124b7610aa (diff)
Merge branch 'master' of github.com:hot-stuff/libhotstuff
Diffstat (limited to 'include/hotstuff/entity.h')
-rw-r--r--include/hotstuff/entity.h10
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; }