aboutsummaryrefslogtreecommitdiff
path: root/src/hotstuff_client.cpp
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2018-07-18 21:44:40 -0400
committerDeterminant <tederminant@gmail.com>2018-07-18 21:44:40 -0400
commit9e745354fe10f31b829f0c02a2aa464f391ffd19 (patch)
treeee2a3e22f128c9281a82a5069aa013af1fd1308f /src/hotstuff_client.cpp
parent70ab6576db5e49f7b2a38ea955e75328a6376812 (diff)
...
Diffstat (limited to 'src/hotstuff_client.cpp')
-rw-r--r--src/hotstuff_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hotstuff_client.cpp b/src/hotstuff_client.cpp
index 1363f39..f9bfb94 100644
--- a/src/hotstuff_client.cpp
+++ b/src/hotstuff_client.cpp
@@ -68,12 +68,12 @@ void try_send() {
}
void on_receive(const MsgClient &msg, MsgNetwork<MsgClient>::conn_t) {
- uint256_t cmd_hash;
Finality fin;
HOTSTUFF_LOG_DEBUG("got %s", std::string(msg).c_str());
if (!msg.verify_checksum())
HOTSTUFF_LOG_ERROR("incorrect checksum %08x", msg.get_checksum());
- msg.parse_respcmd(cmd_hash, fin);
+ msg.parse_respcmd(fin);
+ const uint256_t &cmd_hash = fin.cmd_hash;
auto it = waiting.find(cmd_hash);
if (fin.rid != proposer)
{