Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
56e798c8
Unverified
Commit
56e798c8
authored
Feb 04, 2022
by
Oleh Nikolaiev
Committed by
GitHub
Feb 04, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #376 from skalenetwork/bug/SKALE-4950-empty-error-message
Bug/skale 4950 empty error message
parents
774d4cc7
633d51a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
common.h
common.h
+1
-1
secure_enclave.config.xml.sim
secure_enclave/secure_enclave.config.xml.sim
+3
-3
ZMQServer.cpp
zmq_src/ZMQServer.cpp
+2
-0
No files found.
common.h
View file @
56e798c8
...
...
@@ -121,7 +121,7 @@ string __ERR_STRING__ = string("SGX enclave call to ") + \
__FUNCTION__ + " failed with status:" \
+ to_string(__STATUS__) + \
" Err message:" + __ERR_MSG__; \
BOOST_THROW_EXCEPTION(SGXException(-102, string(__ERR_
MS
G__))); \
BOOST_THROW_EXCEPTION(SGXException(-102, string(__ERR_
STRIN
G__))); \
}\
\
if (__ERR_STATUS__ != 0) {\
...
...
secure_enclave/secure_enclave.config.xml.sim
View file @
56e798c8
...
...
@@ -3,9 +3,9 @@
<ISVSVN>3</ISVSVN>
<StackMaxSize>0x200000</StackMaxSize>
<HeapMaxSize>0x200000</HeapMaxSize>
<TCSNum>2
0
</TCSNum>
<TCSMaxNum>2
0
</TCSMaxNum>
<TCSMinPool>2
0
</TCSMinPool>
<TCSNum>2
5
</TCSNum>
<TCSMaxNum>2
5
</TCSMaxNum>
<TCSMinPool>2
5
</TCSMinPool>
<TCSPolicy>0</TCSPolicy>
<!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release -->
<DisableDebug>0</DisableDebug>
...
...
zmq_src/ZMQServer.cpp
View file @
56e798c8
...
...
@@ -233,6 +233,7 @@ pair <string, shared_ptr<zmq::message_t>> ZMQServer::receiveMessage() {
}
auto
result
=
string
((
char
*
)
reqMsg
->
data
(),
reqMsg
->
size
());
spdlog
::
debug
(
"Received request via ZMQ server: {}"
,
result
);
return
{
result
,
identity
};
}
...
...
@@ -255,6 +256,7 @@ void ZMQServer::sendToClient(Json::Value &_result, shared_ptr <zmq::message_t> &
if
(
!
s_send
(
*
socket
,
replyStr
))
{
exit
(
-
16
);
}
spdlog
::
debug
(
"Send response to client: {}"
,
replyStr
);
}
catch
(
ExitRequestedException
)
{
throw
;
}
catch
(
exception
&
e
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment