Contract execute config flag. (#226)

* Added contract execute flag. Made bin_path optional.
* Updated docker cluster default config.
* Renamed contract config to hp config.
This commit is contained in:
Ravin Perera
2021-01-22 14:33:07 +05:30
committed by GitHub
parent eef6448f08
commit 610b67cec0
10 changed files with 67 additions and 52 deletions

View File

@@ -849,7 +849,7 @@ namespace consensus
return -1;
// Execute the contract
if (!ctx.is_shutting_down)
if (conf::cfg.contract.execute && !ctx.is_shutting_down)
{
{
std::scoped_lock lock(ctx.contract_ctx_mutex);