aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff/client.h
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-08-21 21:58:40 -0400
committerDeterminant <[email protected]>2018-08-21 21:58:40 -0400
commit69208d4931f45911e401a97ba9b019a2ffdfe82c (patch)
tree5bdcb23c028b8108963a6ea6379fcabe49b74e6d /include/hotstuff/client.h
parent3b7801dcfd573858e9a8f27abe890def47ece2ad (diff)
use randomized initial cnt to avoid duplicate command
Diffstat (limited to 'include/hotstuff/client.h')
-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;
}