Skip to content

Commit

Permalink
Merge pull request #99 from skalenetwork/bug/SKALE-2686-server-stuck-…
Browse files Browse the repository at this point in the history
…with-n-flag

Bug/skale 2686 server stuck with n flag
  • Loading branch information
olehnikolaiev authored Jun 4, 2020
2 parents 853981a + 523ed1b commit 5d159a1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 14 deletions.
3 changes: 0 additions & 3 deletions ECDSACrypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ string getECDSAPubKey(const char *_encryptedKeyHex) {

bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatureR,
const char *signatureS) {

bool result = false;

signature sig = signature_init();
Expand All @@ -158,8 +157,6 @@ bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatur

mpz_t msgMpz;
mpz_init(msgMpz);


if (mpz_set_str(msgMpz, hashHex, 16) == -1) {
spdlog::error("invalid message hash {}", hashHex);
goto clean;
Expand Down
1 change: 0 additions & 1 deletion SEKManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ bool check_SEK(std::string SEK){
}

void gen_SEK(){

vector<char> errMsg(1024,0);
int err_status = 0;
vector<uint8_t> encr_SEK(1024, 0);
Expand Down
3 changes: 3 additions & 0 deletions SGXWalletServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ void setFullOptions(int _printDebugInfo,
spdlog::set_level(spdlog::level::info);
}
useHTTPS = _useHTTPS;
spdlog::info("useHTTPS set to " + std::to_string(_useHTTPS));
autoconfirm = _autoconfirm;
spdlog::info("autoconfirm set to " + std::to_string(autoconfirm));
encryptKeys = _encryptKeys;
spdlog::info("encryptKeys set to " + std::to_string(encryptKeys));
}


Expand Down
1 change: 1 addition & 0 deletions run_sgx/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
- "1026:1026"
- "1027:1027"
- "1028:1028"
- "1029:1029"
devices:
- "/dev/isgx"
- "/dev/mei0"
Expand Down
1 change: 1 addition & 0 deletions run_sgx_sim/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
- "1026:1026"
- "1027:1027"
- "1028:1028"
- "1029:1029"
volumes:
- ./sgx_data:/usr/src/sdk/sgx_data
- /dev/urandom:/dev/random
Expand Down
2 changes: 0 additions & 2 deletions scripts/build_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
BLS_BUILD_DIR = BLS_DIR + "/build"
JSON_LIBS_DIR = topDir + "/jsonrpc"

#subprocess.call(["git", "submodule", "update", "--init"])

print("Cleaning")

subprocess.call(["rm", "-f", "install-sh"])
Expand Down
9 changes: 2 additions & 7 deletions scripts/calculate_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ fi

for (( VERSION_NUMBER=0; ; VERSION_NUMBER++ ))
do
if [ "$VERSION" = "1.49" ] && [ "$VERSION_NUMBER" -lt 4 ]
then
VERSION_NUMBER=4
fi
RESULT_VERSION="$VERSION-$LABEL.$VERSION_NUMBER"
if ! [ $(git tag -l ?$RESULT_VERSION) ]
then
echo "$RESULT_VERSION"
if ! [[ $(git tag -l | grep $RESULT_VERSION) ]]; then
echo "$RESULT_VERSION" | tr / -
break
fi
done
2 changes: 1 addition & 1 deletion sgxwallet.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ int main(int argc, char *argv[]) {

setFullOptions(printDebugInfoOption, printTraceInfoOption, useHTTPSOption, autoconfirmOption, encryptKeysOption);

uint32_t enclaveLogLevel = L_INFO;
uint32_t enclaveLogLevel = L_INFO;

if (printTraceInfoOption) {
enclaveLogLevel = L_TRACE;
Expand Down

0 comments on commit 5d159a1

Please sign in to comment.