diff --git a/edl/ccf.edl b/edl/ccf.edl index c25df4ab5311..faf589bc0bbd 100644 --- a/edl/ccf.edl +++ b/edl/ccf.edl @@ -3,6 +3,7 @@ enclave { from "openenclave/edl/sgx/platform.edl" import *; + from "openenclave/edl/time.edl" import *; include "enclave/start_type.h" include "enclave/consensus_type.h" diff --git a/src/enclave/enclave.h b/src/enclave/enclave.h index ed6c6ae5684c..a4175456ff11 100644 --- a/src/enclave/enclave.h +++ b/src/enclave/enclave.h @@ -338,7 +338,7 @@ namespace enclave if ((time_now - idling_start_time) > timeout) { - std::this_thread::sleep_for(timeout); + std::this_thread::sleep_for(timeout * 10); } else {