From cbfda8ccc88789cd3c83c63b6e18693e7dea718d Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 17 Apr 2019 14:54:24 -0400 Subject: support auto client command for evaluation --- src/hotstuff.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/hotstuff.cpp') diff --git a/src/hotstuff.cpp b/src/hotstuff.cpp index aeae2e2..2cc3821 100644 --- a/src/hotstuff.cpp +++ b/src/hotstuff.cpp @@ -115,7 +115,13 @@ promise_t HotStuffBase::exec_command(uint256_t cmd_hash) { } } else + { on_propose(cmds, pmaker->get_parents()); +#ifdef HOTSTUFF_AUTOCLI + for (size_t i = pmaker->get_pending_size(); i < 1; i++) + do_demand_commands(blk_size); +#endif + } }); } return pm; -- cgit v1.2.3