aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff
diff options
context:
space:
mode:
Diffstat (limited to 'include/hotstuff')
-rw-r--r--include/hotstuff/client.h18
-rw-r--r--include/hotstuff/hotstuff.h6
2 files changed, 12 insertions, 12 deletions
diff --git a/include/hotstuff/client.h b/include/hotstuff/client.h
index 37a3a17..1c15ee9 100644
--- a/include/hotstuff/client.h
+++ b/include/hotstuff/client.h
@@ -50,15 +50,15 @@ 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
+//#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;
diff --git a/include/hotstuff/hotstuff.h b/include/hotstuff/hotstuff.h
index 03e5528..43ed3a4 100644
--- a/include/hotstuff/hotstuff.h
+++ b/include/hotstuff/hotstuff.h
@@ -217,9 +217,9 @@ class HotStuffBase: public HotStuffCore {
size_t size() const { return peers.size(); }
PaceMaker &get_pace_maker() { return *pmaker; }
void print_stat() const;
-#ifdef HOTSTUFF_AUTOCLI
- virtual void do_demand_commands(size_t) {}
-#endif
+//#ifdef HOTSTUFF_AUTOCLI
+// virtual void do_demand_commands(size_t) {}
+//#endif
/* Helper functions */
/** Returns a promise resolved (with command_t cmd) when Command is fetched. */