Refactored stage sync logic. (#86)

* Cleaned up stage time sync logic and avoided extra missed rounds.
* Moved stage sync time logic to beginning of consensus stage.
* Removed check_majority_stage.
* Re-organised lcl sync flow.
This commit is contained in:
Ravin Perera
2020-02-10 14:27:37 +01:00
committed by GitHub
parent 8cf869cf9e
commit 4fefb7ca71
14 changed files with 216 additions and 246 deletions

View File

@@ -118,7 +118,7 @@ int exec_contract(const contract_exec_args &args)
execv_args[len - 1] = NULL;
int ret = execv(execv_args[0], execv_args);
LOG_ERR << "Contract process execv failed: " << ret;
LOG_ERR << errno << ": Contract process execv failed.";
exit(1);
}
else
@@ -187,7 +187,7 @@ int start_state_monitor()
execv_args[3] = NULL;
int ret = execv(execv_args[0], execv_args);
LOG_ERR << "State monitor execv failed: " << ret;
LOG_ERR << errno << ": State monitor execv failed.";
exit(1);
}
else if (pid < 0)