Unverified Commit 77024742 authored by kladko's avatar kladko

SKALE-2341 Added tags for older commits

parent a2fdbcb7
...@@ -21,8 +21,9 @@ ...@@ -21,8 +21,9 @@
@date 2018 @date 2018
*/ */
#include "spdlog/spdlog.h"
#include "sgxwallet_common.h"
#include "common.h" #include "common.h"
#include "Log.h" #include "Log.h"
using namespace std; using namespace std;
......
...@@ -45,6 +45,23 @@ ...@@ -45,6 +45,23 @@
#include "common.h" #include "common.h"
void setFullOptions(int _printDebugInfo, int _useHTTPS, int _autoconfirm, int _encryptKeys) {
if (_printDebugInfo)
spdlog::set_level(spdlog::level::info);
else {
spdlog::set_level(spdlog::level::debug);
}
printDebugInfo = _printDebugInfo;
useHTTPS = _useHTTPS;
autoconfirm = _autoconfirm;
encryptKeys = _encryptKeys;
}
void setOptions(int _printDebugInfo, int _useHTTPS, int _autoconfirm) {
setFullOptions(_printDebugInfo, _useHTTPS, _autoconfirm, false);
}
bool isStringDec(string &_str) { bool isStringDec(string &_str) {
auto res = find_if_not(_str.begin(), _str.end(), [](char c) -> bool { auto res = find_if_not(_str.begin(), _str.end(), [](char c) -> bool {
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#endif #endif
EXTERNC void setFullOptions(int _printDebugInfo, int _useHTTPS, int _autoconfirm, int _encryptKeys);
EXTERNC void setOptions(int _printDebugInfo, int _useHTTPS, int _autoconfirm);
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
extern int printDebugInfo; extern int printDebugInfo;
extern int useHTTPS; extern int useHTTPS;
extern int encryptKeys; extern int encryptKeys;
...@@ -43,17 +42,7 @@ extern int autoconfirm; ...@@ -43,17 +42,7 @@ extern int autoconfirm;
inline void setFullOptions(int _printDebugInfo, int _useHTTPS, int _autoconfirm, int _encryptKeys) {
printDebugInfo = _printDebugInfo;
useHTTPS = _useHTTPS;
autoconfirm = _autoconfirm;
encryptKeys = _encryptKeys;
}
inline void setOptions(int _printDebugInfo, int _useHTTPS, int _autoconfirm) {
setFullOptions(_printDebugInfo, _useHTTPS, _autoconfirm, false);
}
......
...@@ -46,13 +46,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -46,13 +46,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <gmp.h> #include <gmp.h>
#include <sgx_urts.h> #include <sgx_urts.h>
#include <stdio.h> #include <stdio.h>
#include <jsonrpccpp/client/connectors/httpclient.h>
#include <sgx_tcrypto.h>
#include "BLSCrypto.h" #include "BLSCrypto.h"
#include "ServerInit.h" #include "ServerInit.h"
#include "DKGCrypto.h" #include "DKGCrypto.h"
#include "RPCException.h" #include "RPCException.h"
#include "LevelDB.h" #include "LevelDB.h"
#include "SGXWalletServer.hpp" #include "SGXWalletServer.hpp"
#include <sgx_tcrypto.h>
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
...@@ -66,7 +69,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -66,7 +69,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <thread> #include <thread>
#include "common.h" #include "common.h"
#include "stubclient.h" #include "stubclient.h"
#include <jsonrpccpp/client/connectors/httpclient.h> #include "SGXWalletServer.h"
default_random_engine randGen((unsigned int) time(0)); default_random_engine randGen((unsigned int) time(0));
......
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