aboutsummaryrefslogtreecommitdiff
path: root/src/hotstuff.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-04-17 14:54:24 -0400
committerDeterminant <[email protected]>2019-04-17 14:54:24 -0400
commitcbfda8ccc88789cd3c83c63b6e18693e7dea718d (patch)
tree98e114ecc4f923f7e435c7ab94524e512e94fc14 /src/hotstuff.cpp
parentd859aa2cd2db03ef66f305a265ae908ef41d6a72 (diff)
support auto client command for evaluation
Diffstat (limited to 'src/hotstuff.cpp')
-rw-r--r--src/hotstuff.cpp6
1 files changed, 6 insertions, 0 deletions
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;