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
41190243
Unverified
Commit
41190243
authored
Sep 15, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3274-restart-enclave
parent
12a6e612
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
SEKManager.cpp
SEKManager.cpp
+4
-3
docker-compose.yml
run_sgx/docker-compose.yml
+1
-0
No files found.
SEKManager.cpp
View file @
41190243
...
@@ -211,9 +211,10 @@ void gen_SEK() {
...
@@ -211,9 +211,10 @@ void gen_SEK() {
void
reinitEnclave
()
{
void
reinitEnclave
()
{
WRITE_LOCK
(
initMutex
);
WRITE_LOCK
(
initMutex
);
initEnclave
();
// unfortunately process needs to be restarted to reinit enclave
shared_ptr
<
string
>
encrypted_SEK_ptr
=
LevelDB
::
getLevelDb
()
->
readString
(
"SEK"
);
// exiting with error code 3 (SGX_OUT_OF_MEMORY), so docker container can restart the
setSEK
(
encrypted_SEK_ptr
);
// wallet
exit
(
3
);
}
}
void
setSEK
(
shared_ptr
<
string
>
hex_encrypted_SEK
)
{
void
setSEK
(
shared_ptr
<
string
>
hex_encrypted_SEK
)
{
...
...
run_sgx/docker-compose.yml
View file @
41190243
...
@@ -2,6 +2,7 @@ version: '3'
...
@@ -2,6 +2,7 @@ version: '3'
services
:
services
:
sgxwallet
:
sgxwallet
:
image
:
skalenetwork/sgxwallet:latest
image
:
skalenetwork/sgxwallet:latest
restart
:
on-failure
ports
:
ports
:
-
"
1026:1026"
-
"
1026:1026"
-
"
1027:1027"
-
"
1027:1027"
...
...
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