Skip to content

Commit

Permalink
changes re decent enclave API upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaven committed Jun 19, 2024
1 parent 7c5c125 commit 282fa1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ endif()
FetchContent_Declare(
git_mbedtls
GIT_REPOSITORY https://github.com/zhenghaven/mbedtls.git
GIT_TAG decent-enclave
GIT_TAG decent-enclave-v3.5.2
)
FetchContent_MakeAvailable(git_mbedtls)
mbedTLScpp_Decentize_Normal(mbedcrypto)
Expand Down
14 changes: 7 additions & 7 deletions tests/End2EndLatency/Trusted/End2EndLatTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

#include <DecentEnclave/Common/DecentTlsConfig.hpp>
#include <DecentEnclave/Common/Logging.hpp>
#include <DecentEnclave/Common/Time.hpp>
#include <DecentEnclave/Common/TlsSocket.hpp>

#include <DecentEnclave/Trusted/ComponentConnection.hpp>
#include <DecentEnclave/Trusted/DecentLambdaClt.hpp>
#include <DecentEnclave/Trusted/Files.hpp>
#include <DecentEnclave/Trusted/HeartbeatRecvMgr.hpp>
#include <DecentEnclave/Trusted/Sgx/Random.hpp>
#include <DecentEnclave/Trusted/Time.hpp>

#include <EclipseMonitor/Eth/AbiParser.hpp>

Expand Down Expand Up @@ -234,7 +234,7 @@ RunPubSubTest(
if (evData == expectedValueBytes)
{
// 3. If yes, record the time
pubTime.store(DecentEnclave::Trusted::UntrustedTime::Timestamp());
pubTime.store(DecentEnclave::Common::UntrustedTime::Timestamp());

// 4. Notify the main thread
cv.notify_one();
Expand Down Expand Up @@ -273,7 +273,7 @@ RunPubSubTest(
if (confirmMsg == expectedValue)
{
// 3. If yes, record the time
subsTime.store(DecentEnclave::Trusted::UntrustedTime::Timestamp());
subsTime.store(DecentEnclave::Common::UntrustedTime::Timestamp());

// 4. Notify the main thread
cv.notify_one();
Expand Down Expand Up @@ -334,7 +334,7 @@ RunPubSubTest(
);

// 3. Record publish time
uint64_t publishTime = DecentEnclave::Trusted::UntrustedTime::Timestamp();
uint64_t publishTime = DecentEnclave::Common::UntrustedTime::Timestamp();

// 4. Publish message to publisher contract
auto gethPxyCon = Trusted::ComponentConnection::Connect("gethProxy");
Expand Down Expand Up @@ -424,7 +424,7 @@ MonitorAndReactTest(
if (confirmMsg == expectedValue)
{
// 3. If yes, record the time
pubTime.store(DecentEnclave::Trusted::UntrustedTime::Timestamp());
pubTime.store(DecentEnclave::Common::UntrustedTime::Timestamp());

// 4. Publish the same message to subscriber contract
// s_cbLogger.Debug("Sending request to GethProxy");
Expand Down Expand Up @@ -469,7 +469,7 @@ MonitorAndReactTest(
if (confirmMsg == expectedValue)
{
// 3. If yes, record the time
subsTime.store(DecentEnclave::Trusted::UntrustedTime::Timestamp());
subsTime.store(DecentEnclave::Common::UntrustedTime::Timestamp());

// 4. Notify the main thread
cv.notify_one();
Expand Down Expand Up @@ -530,7 +530,7 @@ MonitorAndReactTest(
);

// 3. Record publish time
uint64_t publishTime = DecentEnclave::Trusted::UntrustedTime::Timestamp();
uint64_t publishTime = DecentEnclave::Common::UntrustedTime::Timestamp();

// 4. Publish message to publisher contract
auto gethPxyCon = Trusted::ComponentConnection::Connect("gethProxy");
Expand Down

0 comments on commit 282fa1b

Please sign in to comment.