Browse Source

wildkeccak: increase scratchpad buffer size + proxy

master
Tanguy Pruvot 7 years ago
parent
commit
6e32ec2be0
  1. 2
      crypto/wildkeccak.h
  2. 5
      crypto/xmr-rpc.cpp

2
crypto/wildkeccak.h

@ -1,5 +1,5 @@ @@ -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;

5
crypto/xmr-rpc.cpp

@ -828,7 +828,10 @@ static bool download_inital_scratchpad(const char* path_to, const char* url) @@ -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);

Loading…
Cancel
Save