aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2018-08-21 22:25:00 -0400
committerDeterminant <ted.sybil@gmail.com>2018-08-21 22:25:00 -0400
commit51796ba2e778001948f4cd5acb51e31fcaec0641 (patch)
tree5e8618f28d319df77907b006d9f89a3dc3a75032 /include
parent69208d4931f45911e401a97ba9b019a2ffdfe82c (diff)
use cid instead of randomization
Diffstat (limited to 'include')
-rw-r--r--include/hotstuff/client.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/hotstuff/client.h b/include/hotstuff/client.h
index 614b654..447a9db 100644
--- a/include/hotstuff/client.h
+++ b/include/hotstuff/client.h
@@ -26,7 +26,8 @@ struct MsgRespCmd {
};
class CommandDummy: public Command {
- uint64_t n;
+ uint32_t cid;
+ uint32_t n;
uint256_t hash;
public:
@@ -35,15 +36,15 @@ class CommandDummy: public Command {
~CommandDummy() override {}
- CommandDummy(uint64_t n):
- n(n), hash(salticidae::get_hash(*this)) {}
+ CommandDummy(uint32_t cid, uint32_t n):
+ cid(cid), n(n), hash(salticidae::get_hash(*this)) {}
void serialize(DataStream &s) const override {
- s << n;
+ s << cid << n;
}
void unserialize(DataStream &s) override {
- s >> n;
+ s >> cid >> n;
hash = salticidae::get_hash(*this);
}