From 4661ecc2ae1684cc02bde22215200e05b15ed4d7 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 8 May 2019 15:23:47 -0400 Subject: reintroduce client confirms --- include/hotstuff/client.h | 18 +++++++++--------- include/hotstuff/hotstuff.h | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'include/hotstuff') 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. */ -- cgit v1.2.3-70-g09d2