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
6ba1f1c9
Unverified
Commit
6ba1f1c9
authored
May 21, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-1880-fix-ecdsa
parent
f1a2f547
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
12 deletions
+18
-12
Makefile.am
Makefile.am
+4
-4
SGXWALLET_VERSION
SGXWALLET_VERSION
+0
-1
SGXWalletServer.cpp
SGXWalletServer.cpp
+2
-4
SGXWalletServer.hpp
SGXWalletServer.hpp
+10
-0
ServerInit.cpp
ServerInit.cpp
+1
-1
ServerInit.h
ServerInit.h
+0
-1
testw.cpp
testw.cpp
+1
-1
No files found.
Makefile.am
View file @
6ba1f1c9
...
@@ -33,7 +33,7 @@ SUBDIRS=secure_enclave
...
@@ -33,7 +33,7 @@ SUBDIRS=secure_enclave
##
##
## SGX_EDGER8R_FLAGS=
## SGX_EDGER8R_FLAGS=
WALLET_VERSION
:=
$(
shell
cat
VERSION
)
## Needed to make our pattern rule work.
## Needed to make our pattern rule work.
...
@@ -45,11 +45,11 @@ secure_enclave.edl: secure_enclave/secure_enclave.edl
...
@@ -45,11 +45,11 @@ secure_enclave.edl: secure_enclave/secure_enclave.edl
#AM_CPPFLAGS += -g -Og
#AM_CPPFLAGS += -g -Og
AM_CFLAGS
=
-DUSER_SPACE
-g
-Og
-rdynamic
-Wl
,--no-as-needed
-lSegFault
AM_CFLAGS
=
-DUSER_SPACE
-g
-Og
-rdynamic
-Wl
,--no-as-needed
-lSegFault
-DSGXWALLET_VERSION
=
"
$(WALLET_VERSION)
"
AM_CXXFLAGS
=
${
AM_CPPFLAGS
}
-rdynamic
-Wl
,--no-as-needed
-lSegFault
AM_CXXFLAGS
=
${
AM_CPPFLAGS
}
-rdynamic
-Wl
,--no-as-needed
-lSegFault
-DSGXWALLET_VERSION
=
"
$(WALLET_VERSION)
"
AM_CPPFLAGS
+=
-Wall
-DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-Ileveldb
/include
-IlibBLS
/bls
-IlibBLS
/libff
-IlibBLS
-fno-builtin-memset
$(GMP_CPPFLAGS)
-I
.
-I
./libBLS/deps/deps_inst/x86_or_x64/include
AM_CPPFLAGS
+=
-
DSGXWALLET_VERSION
=
"
$(WALLET_VERSION)
"
-
Wall
-DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-Ileveldb
/include
-IlibBLS
/bls
-IlibBLS
/libff
-IlibBLS
-fno-builtin-memset
$(GMP_CPPFLAGS)
-I
.
-I
./libBLS/deps/deps_inst/x86_or_x64/include
## Additional targets to remove with 'make clean'. You must list
## Additional targets to remove with 'make clean'. You must list
## any edger8r generated files here.
## any edger8r generated files here.
...
...
SGXWALLET_VERSION
deleted
100644 → 0
View file @
f1a2f547
#define SGXWALLET_VERSION "1.50.2"
SGXWalletServer.cpp
View file @
6ba1f1c9
...
@@ -678,12 +678,10 @@ Json::Value SGXWalletServer::getServerStatusImpl() {
...
@@ -678,12 +678,10 @@ Json::Value SGXWalletServer::getServerStatusImpl() {
return
result
;
return
result
;
}
}
Json
::
Value
SGXWalletServer
::
getServerVersionImpl
()
{
Json
::
Value
SGXWalletServer
::
getServerVersionImpl
()
{
INIT_RESULT
(
result
)
INIT_RESULT
(
result
)
result
[
"version"
]
=
TOSTRING
(
SGXWALLET_VERSION
);
result
[
"version"
]
=
SGXWALLET_VERSION
;
return
result
;
return
result
;
}
}
...
...
SGXWalletServer.hpp
View file @
6ba1f1c9
...
@@ -33,8 +33,13 @@
...
@@ -33,8 +33,13 @@
using
namespace
jsonrpc
;
using
namespace
jsonrpc
;
using
namespace
std
;
using
namespace
std
;
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
class
SGXWalletServer
:
public
AbstractStubServer
{
class
SGXWalletServer
:
public
AbstractStubServer
{
recursive_mutex
m
;
recursive_mutex
m
;
static
shared_ptr
<
SGXWalletServer
>
server
;
static
shared_ptr
<
SGXWalletServer
>
server
;
...
@@ -42,6 +47,11 @@ class SGXWalletServer : public AbstractStubServer {
...
@@ -42,6 +47,11 @@ class SGXWalletServer : public AbstractStubServer {
public
:
public
:
static
const
char
*
getVersion
()
{
return
TOSTRING
(
SGXWALLET_VERSION
);
}
SGXWalletServer
(
AbstractServerConnector
&
_connector
,
serverVersion_t
_type
);
SGXWalletServer
(
AbstractServerConnector
&
_connector
,
serverVersion_t
_type
);
virtual
Json
::
Value
virtual
Json
::
Value
...
...
ServerInit.cpp
View file @
6ba1f1c9
...
@@ -111,7 +111,7 @@ void initAll(uint32_t _logLevel, bool _checkCert, bool _autoSign) {
...
@@ -111,7 +111,7 @@ void initAll(uint32_t _logLevel, bool _checkCert, bool _autoSign) {
static
int
sgxServerInited
;
static
int
sgxServerInited
;
cout
<<
"Running sgxwallet version:"
<<
SGXW
ALLET_VERSION
<<
endl
;
cout
<<
"Running sgxwallet version:"
<<
SGXW
alletServer
::
getVersion
()
<<
endl
;
CHECK_STATE
(
sgxServerInited
==
0
)
CHECK_STATE
(
sgxServerInited
==
0
)
sgxServerInited
=
1
;
sgxServerInited
=
1
;
...
...
ServerInit.h
View file @
6ba1f1c9
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#define SGXWALLET_SERVERINIT_H
#define SGXWALLET_SERVERINIT_H
#include "stdint.h"
#include "stdint.h"
#include "SGXWALLET_VERSION"
#ifdef __cplusplus
#ifdef __cplusplus
#define EXTERNC extern "C"
#define EXTERNC extern "C"
...
...
testw.cpp
View file @
6ba1f1c9
...
@@ -776,7 +776,7 @@ TEST_CASE_METHOD(TestFixture, "Get ServerStatus", "[get-server-status]") {
...
@@ -776,7 +776,7 @@ TEST_CASE_METHOD(TestFixture, "Get ServerStatus", "[get-server-status]") {
TEST_CASE_METHOD
(
TestFixture
,
"Get ServerVersion"
,
"[get-server-version]"
)
{
TEST_CASE_METHOD
(
TestFixture
,
"Get ServerVersion"
,
"[get-server-version]"
)
{
HttpClient
client
(
RPC_ENDPOINT
);
HttpClient
client
(
RPC_ENDPOINT
);
StubClient
c
(
client
,
JSONRPC_CLIENT_V2
);
StubClient
c
(
client
,
JSONRPC_CLIENT_V2
);
REQUIRE
(
c
.
getServerVersion
()[
"version"
]
==
SGXW
ALLET_VERSION
);
REQUIRE
(
c
.
getServerVersion
()[
"version"
]
==
SGXW
alletServer
::
getVersion
()
);
}
}
...
...
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