diff options
author | Determinant <[email protected]> | 2018-08-21 21:58:40 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-08-21 21:58:40 -0400 |
commit | 69208d4931f45911e401a97ba9b019a2ffdfe82c (patch) | |
tree | 5bdcb23c028b8108963a6ea6379fcabe49b74e6d /include | |
parent | 3b7801dcfd573858e9a8f27abe890def47ece2ad (diff) |
use randomized initial cnt to avoid duplicate command
Diffstat (limited to 'include')
-rw-r--r-- | include/hotstuff/client.h | 5 |
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; } |