From 6e32ec2be06a8931ca853810dd92287fc42f386b Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Mon, 7 Aug 2017 12:30:56 +0200 Subject: [PATCH] wildkeccak: increase scratchpad buffer size + proxy --- crypto/wildkeccak.h | 2 +- crypto/xmr-rpc.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crypto/wildkeccak.h b/crypto/wildkeccak.h index 3cfe9d3..287ed15 100644 --- a/crypto/wildkeccak.h +++ b/crypto/wildkeccak.h @@ -1,5 +1,5 @@ -#define WILD_KECCAK_SCRATCHPAD_BUFFSIZE 1ULL << 28 +#define WILD_KECCAK_SCRATCHPAD_BUFFSIZE 1ULL << 29 #define WILD_KECCAK_ADDENDUMS_ARRAY_SIZE 10 extern uint64_t scratchpad_size; diff --git a/crypto/xmr-rpc.cpp b/crypto/xmr-rpc.cpp index b70debd..e50b28a 100644 --- a/crypto/xmr-rpc.cpp +++ b/crypto/xmr-rpc.cpp @@ -828,7 +828,10 @@ static bool download_inital_scratchpad(const char* path_to, const char* url) if (opt_protocol && opt_debug) { curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); } - + if (opt_proxy) { + curl_easy_setopt(curl, CURLOPT_PROXY, opt_proxy); + curl_easy_setopt(curl, CURLOPT_PROXYTYPE, opt_proxy_type); + } curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 30); curl_easy_setopt(curl, CURLOPT_TIMEOUT, 300);