diff options
author | Determinant <[email protected]> | 2019-07-05 18:25:43 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-07-05 18:25:43 -0400 |
commit | 346f688916d87ff856a81e9cf3f3e69245101475 (patch) | |
tree | e0a0ae7651ee42b487583bb33141863372bacb04 /include/hotstuff/consensus.h | |
parent | 200cbbeb4471443ddf964bfd0a37849ece0efdc4 (diff) |
WIP: pacemaker clean up
Diffstat (limited to 'include/hotstuff/consensus.h')
-rw-r--r-- | include/hotstuff/consensus.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<uint256_t> &cmds, + block_t on_propose(const std::vector<uint256_t> &cmds, const std::vector<block_t> &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. */ |