Unverified Commit 5d159a10 authored by Oleh Nikolaiev's avatar Oleh Nikolaiev Committed by GitHub

Merge pull request #99 from skalenetwork/bug/SKALE-2686-server-stuck-with-n-flag

Bug/skale 2686 server stuck with n flag
parents 853981a6 523ed1b6
......@@ -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();
......@@ -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;
......
......@@ -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);
......
......@@ -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));
}
......
......@@ -6,6 +6,7 @@ services:
- "1026:1026"
- "1027:1027"
- "1028:1028"
- "1029:1029"
devices:
- "/dev/isgx"
- "/dev/mei0"
......
......@@ -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
......
......@@ -46,8 +46,6 @@ BLS_DIR = topDir + "/libBLS"
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"])
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment