aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-05-08 15:23:47 -0400
committerDeterminant <[email protected]>2019-05-08 15:23:47 -0400
commit4661ecc2ae1684cc02bde22215200e05b15ed4d7 (patch)
treeecdf720754f4cf2d8081203bb3a2ad2484c433e6 /include/hotstuff
parent8e0a449961a7d78546dd09deb20f3b16bb460988 (diff)
reintroduce client confirms
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. */