From 346f688916d87ff856a81e9cf3f3e69245101475 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 5 Jul 2019 18:25:43 -0400 Subject: WIP: pacemaker clean up --- include/hotstuff/consensus.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/hotstuff/consensus.h') diff --git a/include/hotstuff/consensus.h b/include/hotstuff/consensus.h index 61d9167..e0f2ecc 100644 --- a/include/hotstuff/consensus.h +++ b/include/hotstuff/consensus.h @@ -102,7 +102,7 @@ class HotStuffCore { /** Call to submit new commands to be decided (executed). "Parents" must * contain at least one block, and the first block is the actual parent, * while the others are uncles/aunts */ - void on_propose(const std::vector &cmds, + block_t on_propose(const std::vector &cmds, const std::vector &parents, bytearray_t &&extra = bytearray_t()); @@ -115,6 +115,7 @@ class HotStuffCore { protected: /** Called by HotStuffCore upon the decision being made for cmd. */ virtual void do_decide(Finality &&fin) = 0; + virtual void do_consensus(const block_t &blk) = 0; /** Called by HotStuffCore upon broadcasting a new proposal. * The user should send the proposal message to all replicas except for * itself. */ -- cgit v1.2.3-70-g09d2