From d50be3ebfbacc2553c5d409aa21d40e99b24ef50 Mon Sep 17 00:00:00 2001 From: kladko <13399135+kladkogex@users.noreply.github.com> Date: Sat, 20 Jun 2020 13:20:03 +0300 Subject: [PATCH] SKALE-2678-BLS-test-vectors --- sgxwall.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sgxwall.cpp b/sgxwall.cpp index 5ebbd29e..50cc5421 100644 --- a/sgxwall.cpp +++ b/sgxwall.cpp @@ -180,7 +180,9 @@ int main(int argc, char *argv[]) { initAll(enclaveLogLevel, checkClientCertOption, autoSignClientCertOption); - if (generateTestKeys) { + ifstream is("sgx_data/4node.json"); + + if (generateTestKeys && !is.good()) { cerr << "Generating test keys ..." << endl; @@ -197,6 +199,7 @@ int main(int argc, char *argv[]) { SGXWallet::serializeKeys(ecdsaKeyNames, blsKeyNames, "sgx_data/4node.json"); + schainID = 2; dkgID = 2;