aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2018-08-21 21:58:40 -0400
committerDeterminant <ted.sybil@gmail.com>2018-08-21 21:58:40 -0400
commit69208d4931f45911e401a97ba9b019a2ffdfe82c (patch)
tree5bdcb23c028b8108963a6ea6379fcabe49b74e6d /include
parent3b7801dcfd573858e9a8f27abe890def47ece2ad (diff)
use randomized initial cnt to avoid duplicate command
Diffstat (limited to 'include')
-rw-r--r--include/hotstuff/client.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/hotstuff/client.h b/include/hotstuff/client.h
index 92b4eec..614b654 100644
--- a/include/hotstuff/client.h
+++ b/include/hotstuff/client.h
@@ -26,7 +26,6 @@ struct MsgRespCmd {
};
class CommandDummy: public Command {
- static uint64_t cnt;
uint64_t n;
uint256_t hash;
@@ -39,10 +38,6 @@ class CommandDummy: public Command {
CommandDummy(uint64_t n):
n(n), hash(salticidae::get_hash(*this)) {}
- static command_t make_cmd() {
- return new CommandDummy(cnt++);
- }
-
void serialize(DataStream &s) const override {
s << n;
}