diff options
author | Determinant <ted.sybil@gmail.com> | 2019-08-30 20:45:38 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2019-08-30 20:45:38 -0400 |
commit | 5ffbe0da60782ea2aa7f2fd872b8880333620133 (patch) | |
tree | 89c8b99426d5820ae07539578b3f97e3a6a051ca /include/hotstuff/consensus.h | |
parent | 9b2128d042187b510b298cfbd724646b0300097e (diff) | |
parent | 870d09e53d93eee04e06fd225bfe4b124b7610aa (diff) |
Merge branch 'master' of github.com:hot-stuff/libhotstuff
Diffstat (limited to 'include/hotstuff/consensus.h')
-rw-r--r-- | include/hotstuff/consensus.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/hotstuff/consensus.h b/include/hotstuff/consensus.h index e0f2ecc..8a4f5f0 100644 --- a/include/hotstuff/consensus.h +++ b/include/hotstuff/consensus.h @@ -44,7 +44,7 @@ class HotStuffCore { uint32_t vheight; /**< height of the block last voted for */ /* === auxilliary variables === */ privkey_bt priv_key; /**< private key for signing votes */ - std::set<block_t, BlockHeightCmp> tails; /**< set of tail blocks */ + std::set<block_t> tails; /**< set of tail blocks */ ReplicaConfig config; /**< replica configuration */ /* === async event queues === */ std::unordered_map<block_t, promise_t> qc_waiting; @@ -158,11 +158,11 @@ class HotStuffCore { promise_t async_hqc_update(); /* Other useful functions */ - const block_t &get_genesis() { return b0; } + const block_t &get_genesis() const { return b0; } const block_t &get_hqc() { return hqc.first; } - const ReplicaConfig &get_config() { return config; } + const ReplicaConfig &get_config() const { return config; } ReplicaID get_id() const { return id; } - const std::set<block_t, BlockHeightCmp> get_tails() const { return tails; } + const std::set<block_t> get_tails() const { return tails; } operator std::string () const; void set_vote_disabled(bool f) { vote_disabled = f; } }; |