Bitcoin Forum
March 19, 2019, 06:15:15 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 [115] 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 ... 191 »
  Print  
Author Topic: [ANN]: cpuminer-opt v3.8.8.1, open source optimized multi-algo CPU miner  (Read 419069 times)
giagge
Legendary
*
Offline Offline

Activity: 1134
Merit: 1001


View Profile
March 16, 2017, 10:52:23 AM
 #2281

3.6.0 update performance with zcoin cpu ? .
1553019315
Hero Member
*
Offline Offline

Posts: 1553019315

View Profile Personal Message (Offline)

Ignore
1553019315
Reply with quote  #2

1553019315
Report to moderator
1553019315
Hero Member
*
Offline Offline

Posts: 1553019315

View Profile Personal Message (Offline)

Ignore
1553019315
Reply with quote  #2

1553019315
Report to moderator
1553019315
Hero Member
*
Offline Offline

Posts: 1553019315

View Profile Personal Message (Offline)

Ignore
1553019315
Reply with quote  #2

1553019315
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1553019315
Hero Member
*
Offline Offline

Posts: 1553019315

View Profile Personal Message (Offline)

Ignore
1553019315
Reply with quote  #2

1553019315
Report to moderator
1553019315
Hero Member
*
Offline Offline

Posts: 1553019315

View Profile Personal Message (Offline)

Ignore
1553019315
Reply with quote  #2

1553019315
Report to moderator
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
March 16, 2017, 12:07:26 PM
 #2282



Has anyone tried GBT with an address? yes, with address, failed

Has anyone tried --no-gbt? yes, failed


back to gbt tomorrow, next testing: 3.6 gbt

I don't understand. If default works (try gbt, fall back to getwork) then --no-gbt should also work
becasuse it goes directly to getwork without first trying gbt.

I'm not surprised gbt doesn't work, it hasn't been tried before.
3.6.0 , getwork and gbt, BOTH tested to work when solo.
Earlier either of those did not work no matter what you did.

Cpuminer is fine now!

Excellent!. Thanks again.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
nizzuu
Full Member
***
Offline Offline

Activity: 193
Merit: 100

Cryptocurrency enthusiast


View Profile
March 16, 2017, 12:21:16 PM
Last edit: March 16, 2017, 12:50:28 PM by nizzuu
 #2283

AMD Ryzen adds support for this: https://en.wikipedia.org/wiki/Intel_SHA_extensions

Does cpuminer-opt use these ones? Should be useful (or may not) for SHA256t/SHA256t (OneCoin or somethin').

Also, good check asm tool: https://github.com/mirror/x264/tree/master/tools, seems that this open source project is one of the most optimized for now. Some ports to cpuminer-opt maybe... Roll Eyes
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
March 16, 2017, 04:13:33 PM
 #2284

AMD Ryzen adds support for this: https://en.wikipedia.org/wiki/Intel_SHA_extensions

Does cpuminer-opt use these ones? Should be useful (or may not) for SHA256t/SHA256t (OneCoin or somethin').

Also, good check asm tool: https://github.com/mirror/x264/tree/master/tools, seems that this open source project is one of the most optimized for now. Some ports to cpuminer-opt maybe... Roll Eyes

I'm having a hard time finding information about the sha256 intrinsics. The only definitive statement I could find was it was
introduced in Goldmont, but that's an Atom architecture. I found some documents discussing sha256 performance on Haswell
but no clear statement about using HW acceleration.

I also found a mention that it is supported in gcc 5 and above but I don't know if that applies to the Goldmont support or
some previous implementation in the core CPUs.

I never looked at sha256 because of the availability of ASICs. There is no ASIC yet for sh256t but it's trivial to implement. The next
generation of ASICs is almost guaranteed to have it.

I quick search found 4 different sha256 implementations in cpuminer-opt. There is SPH, the reference implementation used by
many algos including sha256t. Skein uses an openssl implementation, hodl and yescrypt each have their own implementation.
It's possible openssl has already implemented HW sha256 and would use it on capable CPUs.

Even if the picture was clearer it would be a lot of work to develop a HW accelerated mining function for sha256 with limited
benefit. Mining sha256d would still be useless with a CPU and CPU mining sha256t would become obsolete as soon as the next
generation of ASICS becomes avaialble. None of the other algos that use sha256 have enough interest or support to pay for the
development of a HW accelerated CPU mining function.

One short term possibility is to have sha256t use the openssl implemention if it has been optimized. That is something I can look
into.


cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
March 16, 2017, 05:03:20 PM
 #2285

One short term possibility is to have sha256t use the openssl implemention if it has been optimized. That is something I can look
into.

That was a bust, the openssl version is slower even though it includes the SHA extensions. I don't know if the sha instructions were
actually used, performance suggests they were not.
 

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
felixbrucker
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
March 16, 2017, 06:05:02 PM
 #2286

anybody knows some coins which can still be solomined (besides hexxcoin)? i want to test cpuminer-opt getwork/gbt support as well as my wrapper Tongue
giagge
Legendary
*
Offline Offline

Activity: 1134
Merit: 1001


View Profile
March 17, 2017, 02:06:36 PM
 #2287

Guys , anyone know a best pool for mining monero ? i want try with i7 5820k @ 4 ghz , and i5 6600 , im waiting ryzen 1700 .
manhcuong2411
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
March 17, 2017, 05:17:49 PM
 #2288

hi joblo
I install on Centos but have error: im processing command: make

Code:
mv -f .deps/cpuminer-sysinfos.Tpo .deps/cpuminer-sysinfos.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -Iyes/include -Iyes/include -fno-strict-aliasing -I./compat/jansson -I. -Iyes/include -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast   -O3 -march=native  -Iyes/include -Iyes/include -MT cpuminer-algo-gate-api.o -MD -MP -MF .deps/cpuminer-algo-gate-api.Tpo -c -o cpuminer-algo-gate-api.o `test -f 'algo-gate-api.c' || echo './'`algo-gate-api.c
algo-gate-api.c: In function ‘register_algo_gate’:
algo-gate-api.c:150: error: #pragma GCC diagnostic not allowed inside functions
algo-gate-api.c:151: error: #pragma GCC diagnostic not allowed inside functions
algo-gate-api.c:153: warning: implicit declaration of function ‘register_argon2_algo’
algo-gate-api.c:154: warning: implicit declaration of function ‘register_axiom_algo’
algo-gate-api.c:155: warning: implicit declaration of function ‘register_bastion_algo’
algo-gate-api.c:156: warning: implicit declaration of function ‘register_blake_algo’
algo-gate-api.c:157: warning: implicit declaration of function ‘register_blakecoin_algo’
algo-gate-api.c:159: warning: implicit declaration of function ‘register_blake2s_algo’
algo-gate-api.c:160: warning: implicit declaration of function ‘register_c11_algo’
algo-gate-api.c:161: warning: implicit declaration of function ‘register_cryptolight_algo’
algo-gate-api.c:162: warning: implicit declaration of function ‘register_cryptonight_algo’
algo-gate-api.c:163: warning: implicit declaration of function ‘register_decred_algo’
algo-gate-api.c:164: warning: implicit declaration of function ‘register_deep_algo’
algo-gate-api.c:165: warning: implicit declaration of function ‘register_drop_algo’
algo-gate-api.c:166: warning: implicit declaration of function ‘register_fresh_algo’
algo-gate-api.c:167: warning: implicit declaration of function ‘register_groestl_algo’
algo-gate-api.c:168: warning: implicit declaration of function ‘register_heavy_algo’
algo-gate-api.c:169: warning: implicit declaration of function ‘register_hmq1725_algo’
algo-gate-api.c:170: warning: implicit declaration of function ‘register_hodl_algo’
algo-gate-api.c:171: warning: implicit declaration of function ‘register_keccak_algo’
algo-gate-api.c:172: warning: implicit declaration of function ‘register_lbry_algo’
algo-gate-api.c:173: warning: implicit declaration of function ‘register_luffa_algo’
algo-gate-api.c:174: warning: implicit declaration of function ‘register_lyra2re_algo’
algo-gate-api.c:175: warning: implicit declaration of function ‘register_lyra2rev2_algo’
algo-gate-api.c:176: warning: implicit declaration of function ‘register_zcoin_algo’
algo-gate-api.c:177: warning: implicit declaration of function ‘register_lyra2z330_algo’
algo-gate-api.c:178: warning: implicit declaration of function ‘register_m7m_algo’
algo-gate-api.c:179: warning: implicit declaration of function ‘register_myriad_algo’
algo-gate-api.c:180: warning: implicit declaration of function ‘register_neoscrypt_algo’
algo-gate-api.c:181: warning: implicit declaration of function ‘register_nist5_algo’
algo-gate-api.c:182: warning: implicit declaration of function ‘register_pentablake_algo’
algo-gate-api.c:183: warning: implicit declaration of function ‘register_pluck_algo’
algo-gate-api.c:184: warning: implicit declaration of function ‘register_quark_algo’
algo-gate-api.c:185: warning: implicit declaration of function ‘register_qubit_algo’
algo-gate-api.c:186: warning: implicit declaration of function ‘register_scrypt_algo’
algo-gate-api.c:187: warning: implicit declaration of function ‘register_scryptjane_algo’
algo-gate-api.c:188: warning: implicit declaration of function ‘register_sha256d_algo’
algo-gate-api.c:189: warning: implicit declaration of function ‘register_sha256t_algo’
algo-gate-api.c:190: warning: implicit declaration of function ‘register_shavite_algo’
algo-gate-api.c:191: warning: implicit declaration of function ‘register_skein_algo’
algo-gate-api.c:192: warning: implicit declaration of function ‘register_skein2_algo’
algo-gate-api.c:193: warning: implicit declaration of function ‘register_s3_algo’
algo-gate-api.c:194: warning: implicit declaration of function ‘register_timetravel_algo’
algo-gate-api.c:195: warning: implicit declaration of function ‘register_vanilla_algo’
algo-gate-api.c:196: warning: implicit declaration of function ‘register_veltor_algo’
algo-gate-api.c:197: warning: implicit declaration of function ‘register_whirlpool_algo’
algo-gate-api.c:198: warning: implicit declaration of function ‘register_whirlpoolx_algo’
algo-gate-api.c:199: warning: implicit declaration of function ‘register_x11_algo’
algo-gate-api.c:200: warning: implicit declaration of function ‘register_x11evo_algo’
algo-gate-api.c:201: warning: implicit declaration of function ‘register_sib_algo’
algo-gate-api.c:202: warning: implicit declaration of function ‘register_x13_algo’
algo-gate-api.c:203: warning: implicit declaration of function ‘register_x14_algo’
algo-gate-api.c:204: warning: implicit declaration of function ‘register_x15_algo’
algo-gate-api.c:205: warning: implicit declaration of function ‘register_x17_algo’
algo-gate-api.c:206: warning: implicit declaration of function ‘register_xevan_algo’
algo-gate-api.c:207: warning: implicit declaration of function ‘register_yescrypt_algo’
algo-gate-api.c:208: warning: implicit declaration of function ‘register_zr5_algo’
algo-gate-api.c:211: error: #pragma GCC diagnostic not allowed inside functions
make[2]: *** [cpuminer-algo-gate-api.o] Error 1
make[2]: Leaving directory `/root/cpuminer-opt-3.6.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cpuminer-opt-3.6.0'
make: *** [all] Error 2
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
March 17, 2017, 05:37:07 PM
 #2289

hi joblo
I install on Centos but have error: im processing command: make

Code:
mv -f .deps/cpuminer-sysinfos.Tpo .deps/cpuminer-sysinfos.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -Iyes/include -Iyes/include -fno-strict-aliasing -I./compat/jansson -I. -Iyes/include -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast   -O3 -march=native  -Iyes/include -Iyes/include -MT cpuminer-algo-gate-api.o -MD -MP -MF .deps/cpuminer-algo-gate-api.Tpo -c -o cpuminer-algo-gate-api.o `test -f 'algo-gate-api.c' || echo './'`algo-gate-api.c
algo-gate-api.c: In function ‘register_algo_gate’:
algo-gate-api.c:150: error: #pragma GCC diagnostic not allowed inside functions
algo-gate-api.c:151: error: #pragma GCC diagnostic not allowed inside functions

algo-gate-api.c:211: error: #pragma GCC diagnostic not allowed inside functions
make[2]: *** [cpuminer-algo-gate-api.o] Error 1
make[2]: Leaving directory `/root/cpuminer-opt-3.6.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cpuminer-opt-3.6.0'
make: *** [all] Error 2

What version of gcc are you using? It's not an error with gcc 4.8. You can work around it by deleting the #pragma
directives causing the errors.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
manhcuong2411
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
March 17, 2017, 05:42:17 PM
 #2290

Quote

What version of gcc are you using? It's not an error with gcc 4.8. You can work around it by deleting the #pragma
directives causing the errors.

my version:
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)

i'm updating to gcc 4.8.
i will report for you result
manhcuong2411
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
March 17, 2017, 05:59:51 PM
 #2291

i have just update but other error Sad

gcc 4.8
Code:
[root@localhost cpuminer-opt-3.6.0]# make
make  all-recursive
make[1]: Entering directory `/root/cpuminer-opt-3.6.0'
Making all in compat
make[2]: Entering directory `/root/cpuminer-opt-3.6.0/compat'
Making all in jansson
make[3]: Entering directory `/root/cpuminer-opt-3.6.0/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/cpuminer-opt-3.6.0/compat/jansson'
make[3]: Entering directory `/root/cpuminer-opt-3.6.0/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/cpuminer-opt-3.6.0/compat'
make[2]: Leaving directory `/root/cpuminer-opt-3.6.0/compat'
make[2]: Entering directory `/root/cpuminer-opt-3.6.0'
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -Iyes/include -Iyes/include -fno-strict-aliasing -I./compat/jansson -I. -Iyes/include -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast   -O3 -march=native  -Iyes/include -Iyes/include -MT cpuminer-algo-gate-api.o -MD -MP -MF .deps/cpuminer-algo-gate-api.Tpo -c -o cpuminer-algo-gate-api.o `test -f 'algo-gate-api.c' || echo './'`algo-gate-api.c
/tmp/ccLkOiAY.s: Assembler messages:
/tmp/ccLkOiAY.s:9: Error: expecting string instruction after `rep'
make[2]: *** [cpuminer-algo-gate-api.o] Error 1
make[2]: Leaving directory `/root/cpuminer-opt-3.6.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cpuminer-opt-3.6.0'
make: *** [all] Error 2

 
HexxoDev
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
March 17, 2017, 07:12:45 PM
Last edit: March 17, 2017, 07:31:11 PM by HexxoDev
 #2292

Also gcc 5.4 tested, OK!

These guys are trolling you.
Why waste the time.. It is history.
This is 2017

Even the centos is just as dead as dead can be. But original redhat.. Like from museum.

It is like asking to compile it on commodore 16.
Ok, my nintedo is faster..

felixbrucker
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
March 17, 2017, 08:32:05 PM
 #2293

Also gcc 5.4 tested, OK!

These guys are trolling you.
Why waste the time.. It is history.
This is 2017

Even the centos is just as dead as dead can be. But original redhat.. Like from museum.

It is like asking to compile it on commodore 16.
Ok, my nintedo is faster..

everybody with compile problems and running linux can use docker btw, this approach is clean and neat
felixbrucker
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
March 17, 2017, 11:09:17 PM
 #2294

i noticed this branch of ccminer: https://github.com/hyc/ccminer-cryptonight/commits/daemon

might it be possible to get cryptonight solo mining working with these modifications, ie are they easily portable to cpuminer-opt?
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
March 18, 2017, 12:05:32 AM
 #2295

i noticed this branch of ccminer: https://github.com/hyc/ccminer-cryptonight/commits/daemon

might it be possible to get cryptonight solo mining working with these modifications, ie are they easily portable to cpuminer-opt?

No one has reported it not working.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
felixbrucker
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
March 18, 2017, 01:46:34 PM
 #2296

i noticed this branch of ccminer: https://github.com/hyc/ccminer-cryptonight/commits/daemon

might it be possible to get cryptonight solo mining working with these modifications, ie are they easily portable to cpuminer-opt?

No one has reported it not working.

ah yes, i assumed it doesnt work

anything different as with "normal" coins like hexx?

my cmdline would look like this (blockchain still syncing):

cpuminer -a cryptonight -t 3 --coinbase-addr=<ADDR> -o http://localhost:RPC_PORT -u ?? -p ??

not sure about the username and pass param, will see if needed and/or how to set in coin config
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
March 18, 2017, 03:03:33 PM
 #2297

@ Felix

-u mustmatch coin conf
-p as in coin conf too

one of the benefits is with coinbase adr, you dont need to have the wallet started (usually)
try this pls and report us if it works for you

for me i have done so some time ago  and it has worked


Cryptonight uses a different version of RPC and doesn't support GBT. Coinbase addr is not used
for getwork.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
felixbrucker
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
March 18, 2017, 03:37:35 PM
 #2298

@ Felix

-u mustmatch coin conf
-p as in coin conf too

one of the benefits is with coinbase adr, you dont need to have the wallet started (usually)
try this pls and report us if it works for you

for me i have done so some time ago  and it has worked


i see, i think this only applies to non cryptonight algos, as joblo pointed out below they dont use coinbase-addr
felixbrucker
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
March 18, 2017, 03:38:30 PM
 #2299

@ Felix

-u mustmatch coin conf
-p as in coin conf too

one of the benefits is with coinbase adr, you dont need to have the wallet started (usually)
try this pls and report us if it works for you

for me i have done so some time ago  and it has worked


Cryptonight uses a different version of RPC and doesn't support GBT. Coinbase addr is not used
for getwork.

i will try to test getwork later today, will report findings
onedeveloper
Full Member
***
Offline Offline

Activity: 145
Merit: 100


View Profile
March 18, 2017, 03:49:22 PM
 #2300

This is the code for sending RPC commands to Monero and similar miners. It's written in C++, with classes and overloaded operators, but can be converted to standard C if needed:

Code:
UniValue CallRPC(const string& strMethod, const UniValue& params)
{
    std::string host = GetArg("-rpcconnect", DEFAULT_RPCCONNECT);
    int port = GetArg("-rpcport", BaseParams().RPCPort());

    // Create event base
    struct event_base *base = event_base_new(); // TODO RAII
    if (!base)
        throw runtime_error("cannot create event_base");

    // Synchronously look up hostname
    struct evhttp_connection *evcon = evhttp_connection_base_new(base, NULL, host.c_str(), port); // TODO RAII
    if (evcon == NULL)
        throw runtime_error("create connection failed");
    evhttp_connection_set_timeout(evcon, GetArg("-rpcclienttimeout", DEFAULT_HTTP_CLIENT_TIMEOUT));

    HTTPReply response;
    struct evhttp_request *req = evhttp_request_new(http_request_done, (void*)&response); // TODO RAII
    if (req == NULL)
        throw runtime_error("create http request failed");

    // Get credentials
    std::string strRPCUserColonPass;
    if (mapArgs["-rpcpassword"] == "") {
        // Try fall back to cookie-based authentication if no password is provided
        if (!GetAuthCookie(&strRPCUserColonPass)) {
            throw runtime_error(strprintf(
                _("Could not locate RPC credentials. No authentication cookie could be found, and no rpcpassword is set in the configuration file (%s)"),
                    GetConfigFile().string().c_str()));

        }
    } else {
        strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"];
    }

    struct evkeyvalq *output_headers = evhttp_request_get_output_headers(req);
    assert(output_headers);
    evhttp_add_header(output_headers, "Host", host.c_str());
    evhttp_add_header(output_headers, "Connection", "close");
    evhttp_add_header(output_headers, "Authorization", (std::string("Basic ") + EncodeBase64(strRPCUserColonPass)).c_str());

    // Attach request data
    std::string strRequest = JSONRPCRequest(strMethod, params, 1);
    struct evbuffer * output_buffer = evhttp_request_get_output_buffer(req);
    assert(output_buffer);
    evbuffer_add(output_buffer, strRequest.data(), strRequest.size());

    int r = evhttp_make_request(evcon, req, EVHTTP_REQ_POST, "/");
    if (r != 0) {
        evhttp_connection_free(evcon);
        event_base_free(base);
        throw CConnectionFailed("send http request failed");
    }

    event_base_dispatch(base);
    evhttp_connection_free(evcon);
    event_base_free(base);

    if (response.status == 0)
        throw CConnectionFailed("couldn't connect to server");
    else if (response.status == HTTP_UNAUTHORIZED)
        throw runtime_error("incorrect rpcuser or rpcpassword (authorization failed)");
    else if (response.status >= 400 && response.status != HTTP_BAD_REQUEST && response.status != HTTP_NOT_FOUND && response.status != HTTP_INTERNAL_SERVER_ERROR)
        throw runtime_error(strprintf("server returned HTTP error %d", response.status));
    else if (response.body.empty())
        throw runtime_error("no response from server");

    // Parse reply
    UniValue valReply(UniValue::VSTR);
    if (!valReply.read(response.body))
        throw runtime_error("couldn't parse reply from server");
    const UniValue& reply = valReply.get_obj();
    if (reply.empty())
        throw runtime_error("expected reply to have result, error and id properties");

    return reply;
}

What one needs to do is thus adding this new communications protocol to the miner and adjust it accordingly. This way the miner can solo mine this and similar coins without problem.
Pages: « 1 ... 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 [115] 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 ... 191 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!