diff options
author | Determinant <ted.sybil@gmail.com> | 2019-04-17 14:54:24 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2019-04-17 14:54:24 -0400 |
commit | cbfda8ccc88789cd3c83c63b6e18693e7dea718d (patch) | |
tree | 98e114ecc4f923f7e435c7ab94524e512e94fc14 /include/hotstuff/client.h | |
parent | d859aa2cd2db03ef66f305a265ae908ef41d6a72 (diff) |
support auto client command for evaluation
Diffstat (limited to 'include/hotstuff/client.h')
-rw-r--r-- | include/hotstuff/client.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hotstuff/client.h b/include/hotstuff/client.h index 95bcacb..37a3a17 100644 --- a/include/hotstuff/client.h +++ b/include/hotstuff/client.h @@ -50,6 +50,16 @@ struct MsgRespCmd { } }; +#ifdef HOTSTUFF_AUTOCLI +struct MsgDemandCmd { + static const opcode_t opcode = 0x6; + DataStream serialized; + size_t ncmd; + MsgDemandCmd(size_t ncmd) { serialized << ncmd; } + MsgDemandCmd(DataStream &&s) { s >> ncmd; } +}; +#endif + class CommandDummy: public Command { uint32_t cid; uint32_t n; |