diff options
author | Determinant <[email protected]> | 2018-07-19 17:51:15 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-07-19 17:51:15 -0400 |
commit | 3c355d7f9e7b491b9fc5af4516286ab4100238c6 (patch) | |
tree | 7806e385c3c35be4deb82d4a799fc504ed6e90b3 /include/hotstuff/client.h | |
parent | 3c1cac7136b6fbc378c5bc86a50537794f2b6437 (diff) |
...
Diffstat (limited to 'include/hotstuff/client.h')
-rw-r--r-- | include/hotstuff/client.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/hotstuff/client.h b/include/hotstuff/client.h index 87e60b7..95a003d 100644 --- a/include/hotstuff/client.h +++ b/include/hotstuff/client.h @@ -14,30 +14,6 @@ enum { CHK_CMD = 0x6 }; -struct Finality: public Serializable { - ReplicaID rid; - int8_t decision; - uint256_t cmd_hash; - uint256_t blk_hash; - - public: - Finality() = default; - Finality(ReplicaID rid, int8_t decision, - uint256_t cmd_hash, uint256_t blk_hash): - rid(rid), decision(decision), - cmd_hash(cmd_hash), blk_hash(blk_hash) {} - - void serialize(DataStream &s) const override { - s << rid << decision << cmd_hash; - if (decision == 1) s << blk_hash; - } - - void unserialize(DataStream &s) override { - s >> rid >> decision >> cmd_hash; - if (decision == 1) s >> blk_hash; - } -}; - struct MsgClient: public salticidae::MsgBase<> { using MsgBase::MsgBase; void gen_reqcmd(const Command &cmd); |