SKALE-3276 fix build

parent 0311119c
...@@ -103,7 +103,7 @@ sgxwallet_LDADD=-l$(SGX_URTS_LIB) -l$(SGX_UAE_SERVICE_LIB) -LlibBLS/deps/deps_in ...@@ -103,7 +103,7 @@ sgxwallet_LDADD=-l$(SGX_URTS_LIB) -l$(SGX_UAE_SERVICE_LIB) -LlibBLS/deps/deps_in
-l:libbls.a -l:libleveldb.a \ -l:libbls.a -l:libleveldb.a \
-l:libff.a -lgmp -ldl -l:libsgx_capable.a -l:libsgx_tprotected_fs.a \ -l:libff.a -lgmp -ldl -l:libsgx_capable.a -l:libsgx_tprotected_fs.a \
-ljsonrpccpp-stub -ljsonrpccpp-server -ljsonrpccpp-client -ljsonrpccpp-common -ljsoncpp -lmicrohttpd \ -ljsonrpccpp-stub -ljsonrpccpp-server -ljsonrpccpp-client -ljsonrpccpp-common -ljsoncpp -lmicrohttpd \
-lboost_system -lboost_thread -lgnutls -lgcrypt -lcurl -lssl -lcrypto -lz -lpthread -lstdc++fs -lboost_system -lboost_thread -lgnutls -lgcrypt -lcurl -lssl -lcrypto -lz -lpthread -lstdc++fs
testw_SOURCES=testw.cpp $(COMMON_SRC) testw_SOURCES=testw.cpp $(COMMON_SRC)
......
...@@ -306,8 +306,6 @@ void TestUtils::doDKG(StubClient &c, int n, int t, ...@@ -306,8 +306,6 @@ void TestUtils::doDKG(StubClient &c, int n, int t,
verifVects[i] = c.getVerificationVector(polyName, t, n); verifVects[i] = c.getVerificationVector(polyName, t, n);
CHECK_STATE(verifVects[i]["status"] == 0); CHECK_STATE(verifVects[i]["status"] == 0);
pubEthKeys.append(ethKeys[i]["publicKey"]); pubEthKeys.append(ethKeys[i]["publicKey"]);
REQUIRE_NOTHROW(c.getVerificationVector(polyName, t, n));
} }
for (uint8_t i = 0; i < n; i++) { for (uint8_t i = 0; i < n; i++) {
...@@ -320,7 +318,6 @@ void TestUtils::doDKG(StubClient &c, int n, int t, ...@@ -320,7 +318,6 @@ void TestUtils::doDKG(StubClient &c, int n, int t,
pubShares[i] += TestUtils::convertDecToHex(pubShare); pubShares[i] += TestUtils::convertDecToHex(pubShare);
} }
} }
REQUIRE_NOTHROW(c.getSecretShare(polyNames[i], pubEthKeys, t, n));
} }
int k = 0; int k = 0;
......
1.58.3 1.58.4
\ No newline at end of file
...@@ -523,9 +523,11 @@ TEST_CASE_METHOD(TestFixture, "DKG API test", "[dkg-api]") { ...@@ -523,9 +523,11 @@ TEST_CASE_METHOD(TestFixture, "DKG API test", "[dkg-api]") {
Json::Value verifVectWrongName = c.getVerificationVector("poly", 2, 2); Json::Value verifVectWrongName = c.getVerificationVector("poly", 2, 2);
REQUIRE(verifVectWrongName["status"].asInt() != 0); REQUIRE(verifVectWrongName["status"].asInt() != 0);
REQUIRE_NOTHROW(c.getVerificationVector("poly", 2, 2));
Json::Value secretSharesWrongName = c.getSecretShare("poly", publicKeys, 2, 2); Json::Value secretSharesWrongName = c.getSecretShare("poly", publicKeys, 2, 2);
REQUIRE(secretSharesWrongName["status"].asInt() != 0); REQUIRE(secretSharesWrongName["status"].asInt() != 0);
REQUIRE_NOTHROW(c.getSecretShare("poly", publicKeys, 2, 2));
// wrong_t // wrong_t
Json::Value genPolyWrong_t = c.generateDKGPoly(polyName, 33); Json::Value genPolyWrong_t = c.generateDKGPoly(polyName, 33);
......
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