aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hotstuff/client.h')
-rw-r--r--include/hotstuff/client.h10
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;