diff options
author | Determinant <[email protected]> | 2018-07-18 21:44:40 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-07-18 21:44:40 -0400 |
commit | 9e745354fe10f31b829f0c02a2aa464f391ffd19 (patch) | |
tree | ee2a3e22f128c9281a82a5069aa013af1fd1308f /src/client.cpp | |
parent | 70ab6576db5e49f7b2a38ea955e75328a6376812 (diff) |
...
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp index 486594a..bc790bc 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -16,16 +16,16 @@ void MsgClient::parse_reqcmd(command_t &cmd, HotStuffCore *hsc) const { cmd = hsc->parse_cmd(s); } -void MsgClient::gen_respcmd(const uint256_t &cmd_hash, const Finality &fin) { +void MsgClient::gen_respcmd(const Finality &fin) { DataStream s; set_opcode(RESP_CMD); - s << cmd_hash << fin; + s << fin; set_payload(std::move(s)); } -void MsgClient::parse_respcmd(uint256_t &cmd_hash, Finality &fin) const { +void MsgClient::parse_respcmd(Finality &fin) const { DataStream s(get_payload()); - s >> cmd_hash >> fin; + s >> fin; } void MsgClient::gen_chkcmd(const uint256_t &cmd_hash) { |