Bitcoin Forum
June 28, 2024, 09:57:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 [3] 4 5 »
41  Alternate cryptocurrencies / Mining (Altcoins) / Re: [ANN] Bminer: a fast Equihash miner for CUDA GPUs (5.4.0) on: February 18, 2018, 04:57:54 AM
@wetblanket, I missed the nonce1 from zpool - to me it looked like the session_id rather than nonce1. However, appending to the nonce1 and prepending to the nonce2 as you previously explained just doesn't work (and can't work). I tried it. Let's continue this on PM.

p.s. of course it's easier done in the miner, and should be done in the miner. Your points are valid, but they perpetuate the problem! It's the miners who should comply first with good practice, and we should encourage, if not coerce, them to ... it's also easier (1 line of code to randomize the seed, rather than hefty work to work around the problem). For anything involving probabilistic approaches, always randomize seeds; in the case of miners, it's pretty idiotic not to because of exactly this proxy problem and duplicate shares.

For the purposes of closing off the public convo here, we'll just have to agree to disagree then! Smiley We simply have different approaches to the same problem. I see your view on this as idealistic; trying to force miners to do things the way you believe is right (regardless of how much better it is) is unrealistic. I choose to approach it from what I see is a more practical vector. But, as you say: sharerate/hashrate measurement is possible either way, and seems to be the goal for many in here.

As I mentioned, this is a borrowed idea, and pseudo-standard in ALL proxies I came across (that I chose to spend time interpreting code on, that is). More importantly, I've confirmed this this approach works with my proxy with both bminer and dstm.

Will msg via PM now. If anyone else on the thread is interested in talking about stratum protocol, please PM me. Now back to your regularly scheduled bminer banter...
42  Alternate cryptocurrencies / Mining (Altcoins) / Re: [ANN] Bminer: a fast Equihash miner for CUDA GPUs (5.4.0) on: February 18, 2018, 01:37:33 AM
@wetblanket - what you propose is not always feasible (depends on the algo, pool and miner; e.g. dstm rejects it, zpool.ca does not even send a nonce1; i also couldn't make it work like you explained with bminer).

Any statum-like protocol requires sending a nonce1, as miners require it; it's their unique pool-designated nonce-space in which to generate solutions and this prevents duplicates at the pool - so yes, zpool must send it:

Code:
{"method": "mining.subscribe", "id": 1, "params": ["test/1.0.1", "", "equihash.mine.zpool.ca", 2142]}
{"id":1,"result":[[["mining.set_target","0001fffe00000000000000000000000000000000000000000000000000000000"],["mining.notify","14b0d7e249321c064e953398291e723b"]],"810092d3"],"error":null}

"810092d3" above is the nonce1. What equihash does NOT send (unlike other stratum-like protocols) is the nonce2_size (usually about 4), which indicates the size of the nonce2 solution the pool is expecting to receive in a "mining.submit" share.

Equihash takes a different approach, internally defining the total nonce size to be 32 bytes long (much bigger than other algos), so the miner (and also any proxy!) can calculate the length of the nonce2 it needs to generate to satisfy a total length of 32. So: 32 - len(nonce1) == <how long the generated nonce2 must be>

It shouldn't be handled in the proxy anyway ... I patched nheqminer with random seeds a long time ago because of the same issue. Also, you hit duplicate shares every single time, since every job is broadcast to all miners at the same time.

The fix is so much easier done in the miner ... just change the start seed.

For the purpose of comparing dstm and bminer it doesn't matter though.

I disagree that it's easier done in the miner, but this is mostly a matter of perspective:

  • My previous point about not being able to control/patch all miners means that if you take the approach of dictating to miners that they have to change their code to your way of thinking simply means that your proxy will not be compatible with miners that choose not to do so. Patching the code isn't the hard part; it's ensuring all miners do so.
  • You certainly CAN patch miners to generate nonce2 values randomly; however given the same nonce1, there is still a small chance two rigs will randomly generate the same nonce2 value. This would still result in a duplicate share. The possibility is admittedly incredibly remote, but the chance is still there.

From a different point of view: a miner cannot control what other miners are doing; only the source of information can do that. In a pool -> miner relationship, the pool fills that role. If a proxy is put in the middle, then the proxy must serve that role for its connected miners.

This is literally the canonical proxy example, which does exactly what I'm saying. I'm not inventing this approach, I'm just describing something that already works and all but guarantees the avoidance of duplicate shares.
43  Alternate cryptocurrencies / Mining (Altcoins) / Re: [ANN] Bminer: a fast Equihash miner for CUDA GPUs (5.4.0) on: February 15, 2018, 05:06:07 PM
@realbminer: you are using the same seed for the nonce every time a new job is sent by the pool ... this is bad programming. When multiple rigs running bminer are connected to a proxy, they all receive the same job (proxy broadcasts it). Normally, each rig should start with a random seed, and hence find different solutions below the target. However, bminer always starts with the same seed, and the rigs find the same solution, they all submit it, the pool accepts only the first one and rejects all the others, and then bminer finally craps out with "too many invalid solutions".

p.s. For any experts out there, including @realbminer: No, the proxy should not relay all messages in order to get different jobs for different rigs. A true proxy should be able to act like a single miner, the pool sending only one job, then the proxy broadcasts to all rigs and merges replies from rigs to the pool. The purpose is reduce communication overhead from the pool and hence also reduce likelihood of stale shares.

I don't think I'm misunderstanding you, in the case that I am, please correct me...

I've done a fair bit of research into proxies and the stratum protocol - I've been building a multi-coin proxy myself, we should compare notes - my findings are somewhat different than yours.

MANY mining devices/binaries will just start their calculations at zero and increment; I agree that it's somewhat better to 'randomly seed', but it IS perfectly valid to just increment.  You're right, with this type of tactic, in the multi-rig scenario you mention, it's absolutely possible and in fact highly likely to hit duplicate shares early without some sort of intervention.  However, the solution to this isn't in the miner (you cannot control how all past and future mining binaries will do this, after all).

Think about this for a second: the pool assigns each miner connection a unique nonce1 value. This gives each connection a unique 'nonce-space' in which to calculate solutions. If every connection to the pool is a miner, then there won't be any duplicate shares submitted. However, if a connection to the pool is a proxy, it still only receives a single nonce1 value and it has to 'share' that nonce1 value with all miners that connect to it. With this in mind...

The better solution lies in the proxy itself (particularly since you cannot control all miners out here)! If you examine how other proxies handle this, they 'assign' a unique nonce space to each miner connection by assigning one or two (unique) bytes per worker connection. For each miner connection to the proxy, this byte value is appended to the nonce1 value (originally received from the pool); and as you know the miner receives this unique nonce1 in their 'mining.subscribe' stratum request.

So, a proxy needs to send the pool's nonce1 + unique byte value per connection (ie. per rig) on subscription, and when a share is submitted from a rig the proxy needs to prepend the rig's unique byte value to the calculated nonce before sending it on to the pool.

There are caveats to this approach; with a single extra byte, you're limited to 256 miners connecting to that proxy. With 2 bytes extra, you get up to 65536 connections allowed. Most other popular proxies I've examined follow this approach, rather than rely on consensus and a common tactic used in miners.

I have this working, and have confirmed that bminer only supports up to 256 because it's hard-coded to only allow a single extra byte to be appended to the nonce (based on my investigation, I believe this was done to support Nicehash, which is like a proxy).

realbminer, if you're reading, you should really look at allowing another extra byte in the nonce1 length to give miners more flexibility - and more proxy compatibility.
44  Alternate cryptocurrencies / Mining (Altcoins) / Re: [ANN] dstm's ZCash / Equihash Nvidia Miner v0.5.8 (Linux / Windows) on: February 12, 2018, 04:51:46 PM
Just crashed again, this time:

Code:
protocol version 01000030 not supported

right before the crash.

I'm not sure why this is happening all of the sudden as it's been really stable for awhile.

Based on the above, I'd guess that '01000030' is the stratum protocol "mining.notify" method job version for whatever pool you're connecting to - it seems that 0.5.8 added support for '01000020', but now '01000030' is also required. Meaning, pools are updating their software, but miners need to catch up. Is this on nicehash or suprnova (based on your previous posts)?

dstm, if I'm on the right track here, have you investigated whether dropping any job version checks is feasible?
45  Alternate cryptocurrencies / Mining (Altcoins) / Re: [ANN] dstm's ZCash / Equihash Nvidia Miner v0.5.8 (Linux / Windows) on: February 12, 2018, 04:47:45 PM
Trying to get some stats from my miner and noticed the JSON-RPC interface is broken.

$ curl http://192.168.1.6:2222 -X POST -D '{"id":1, "method":"getstat"}' -v
* Rebuilt URL to: http://192.168.1.6:2222/
*   Trying 192.168.1.6...
* TCP_NODELAY set
* Connected to 192.168.1.6 (192.168.1.6) port 2222 (#0)
> POST / HTTP/1.1
> Host: 192.168.1.6:2222
> User-Agent: curl/7.57.0
> Accept: */*
>
{"id":1,"result":[{"gpu_id":0,.....cutting some useless stuff here....rsion":"0.5.8","error": null}
* Connection #0 to host 192.168.1.6 left intact


The reply is there, but the reply is not valid HTTP ('HTTP/1.0 200 OK' is missing from reply). Therefore most http-libs and browsers will not be able to use the data.

Can you please add the 'HTTP/1.0 200 OK' line to the json-rpc please?

From my experimentation and investigation, the JSONRPC interface here isn't broken. Devs choose what 'transport' flavors to support - the most common by far in the mining space is JSONRPC over plain sockets (either plaintext or TLS secured). "JSONRPC over HTTP" isn't frequently supported that I've seen.

I imagine dstm's decision for the stats/telemetry API was largely based on the informal consensus in the community to implement stratum spec with plain sockets only.

(Edit: I'm open to being wrong here... just observations based on what I've seen.)
46  Alternate cryptocurrencies / Mining (Altcoins) / Re: [ANN] dstm's ZCash / Equihash Nvidia Miner v0.5.8 (Linux / Windows) on: February 10, 2018, 05:57:53 PM
I would also like to know what protocol v.01000020 is?

What is protocol v.01000020 ? I did an basic search on this forum and found nothing.

Version 0.5.8
con: add support for protocol v.01000020                                                                                      
link openssl statically
47  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Zclassic, Zcash Fork No Premine, No 20% Founders Tax on: January 30, 2018, 04:20:29 AM
Hi everyone,

Got a few questions regarding the fork:
Snapshot and fork date have been officially announced.
1. Do I understand it right in saying that both BTC and ZCL coins owner will get BTCP coins at the time of the fork?
2. What will be the ratio? 1ZCL for 1BTCP and 1BTC  for 1BTCP?
3. Will my ZCL wallet need to be online/synched at the time of the snapshot? else how would they know how many ZCL i own? same Q goes for BTC, no need for external wallet here?
4. One can expect a surge in ZCL and BTC price around the time of the snapshot...?

thx

1. yes
2. yes
3. no to needing to be 'online' (the blockchain will record all-the -things), but your ZCL/BTC will need to be at an address you control (in a wallet or on an exchange that will support the fork - just get it into a wallet you control the keys for, that's safest)
4. one can expect a surge or a drop or both
48  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Zclassic, Zcash Fork No Premine, No 20% Founders Tax on: January 26, 2018, 07:53:54 PM
Guys just wanted to ask if what mining pool you are using right now?
I'm currently using zcl.suprnova.cc pool and i'm not satisfied because my logs or mining hash rate is stable while in their dashboard hashrate is low..
Can you recommend other mining pool which is stable hashrate or accurate hashrate in dashboard thanks..

I'm using zcl.suprnova.cc; no major complaints besides the fact that their web UI is slow. However I would like to know how you're determining that they're not doing well for you in case I'm missing something.

You probably know this already, but the miner's hashrate will almost always be different from that of the pool. The miner shows the actual hashrate based on the real GPU work done (unless the miner is inflating its numbers to look better, but we kind of have to 'trust' them). The pool calculates your hashrate based on the number and frequency of accepted shares you send in. The sending of shares by the miner to the pool is an intermittent activity, sometimes you'll get two in a minute, other times you wait several minutes between shares (it IS guess-work, after all).

But to better understand the issue, it would be helpful to give some numbers from both the miner and suprnova, so people can help out.

  • What miner (mining software) are you using?
  • What are your rig(s) configuration/setup? How many GPUs, etc?
  • Do you overclock? What are your settings
  • How long did you run the miner for on this pool before determining it's 'low'?

There are a lot of factors, obviously.

I wrote a little script to pull share/hash rate & earning stats from suprnova's API - I only use it for 'real-time' display purposes, but I'm thinking of storing historical data so I can see things over time and better determine success vs problematic behaviour.

Anyhow, in answer to your real question, I can safely say, don't use zclmine.pro. I had major latency issues when submitting shares.
49  Alternate cryptocurrencies / Mining (Altcoins) / Re: [ANN] Bminer: a fast Equihash miner for CUDA GPUs (5.2.0) on: January 26, 2018, 06:03:35 PM
Run for two days and still cannot reproduce the error.

Have you tried different mining pool?
Not yet, no.
This pool gives me the best payout at the moment. I've been running Ewfb miner for days on it without problems.
Since it stopped mining with Bminer I switched to dstm and its been running great with about the same reported hash rates.

Would love to run Bminer, if it was faster or if it had lower fee than the others. But stability problems is a much bigger concern than slightly higher hash rates.

realbminer, it almost sounds like a stratum protocol parsing issue, specific to the one pool's implementation? Although, PIR3lly stated that it ran well for a day before starting to fail.

Perhaps something related to the mining 'session' (re: mining.subscribe ID used to resubscribe after disconnect) - not sure if bminer supports resuming mining sessions. Given the slow, staggered startup, I'm guessing 'no'. (and it's very unlikely that it would resume between fresh bminer starts, anyway) But if so, maybe starting subscribing fresh, without resuming would help?
50  Alternate cryptocurrencies / Mining (Altcoins) / Re: [ANN] Bminer: a fast Equihash miner for CUDA GPUs (5.1.0) on: January 19, 2018, 08:06:53 PM
HI guys. First time using BMiner. I always use EWBF. So I tried BMiner today and i get 30-40 sol/s more than with EWBF. I will test this on my pool im using: miningpoolhub - and compare agains yesterday's results with EWBF. The results below is from a Asus NVidia GTX 1080 8GB card and a Nvidia 1050ti 4gb card

If you didn't, try going through the process of finding the best OC settings for your cards using bminer. I found that the results could be quite a bit better compared to just using the ewbf OC settings.

Overall, I found that dstm and bminer seemed to perform their respective best with same OC settings (again, different than the 'best' OC settings for ewbf), with bminer providing a slightly higher hashrate.
51  Bitcoin / Pools / Re: Stratum protocol discussion on: January 19, 2018, 08:04:39 AM
My original post was here (because I didn't want to resurrect an old thread necessarily, I see now I was wrong): https://bitcointalk.org/index.php?topic=2768236.0

My main question at the moment is around the various transports mentioned:

The 'spec' defines 4 transports: Socket transport, Websocket, HTTP Poll, and HTTP Push (which is a variation of HTTP Poll). I get the feeling that much has changed since stratum was first introduced, so I'm wondering if all 4 protocols are still needed/used - is it necessary to implement them all in a proxy? What about if one was implementing a pool? For example, if miners have moved towards supporting plain TCP Socket transport only, there's no point in implementing the other 3 transports.
52  Alternate cryptocurrencies / Pools (Altcoins) / MOVED: Help with stratum protocol/transport questions on: January 17, 2018, 11:10:34 PM
This topic has been moved to Mining software (miners) - I didn't realize something much more specific to protocol implementation existed. Someday, I'll learn my way around BCT.

https://bitcointalk.org/index.php?topic=2768236.0
53  Alternate cryptocurrencies / Mining (Altcoins) / MOVED: Help with stratum protocol/transport questions on: January 17, 2018, 07:17:03 PM
This topic has been moved to Pools (Altcoins), because the conversation and members there should be more relevant.

https://bitcointalk.org/index.php?topic=2768236.0
54  Bitcoin / Mining software (miners) / Re: Help with stratum protocol/transport questions on: January 17, 2018, 12:43:04 AM
The original spec, pretty clearly dislikes the whole HTTP / long poll approach, and I agree, I barely considered anything other than a plain socket (with cJSON to handle the data), it's way simpler than anything else and does *almost* everything needed... only potential extra feature needed, is SSL...  So I think a proxy just supporting TCP sockets would do for most miners.

I think you ought to be able to do SSL with just the plain TCP socket - it's just a 'modification' to the socket transport layer. I'm pretty sure that miners that support SSL are doing it this way. Remember, HTTPS != SSL; HTTPS == HTTP on top of SSL-enabled sockets.  I suppose the proper term these days is TLS though...

I've looked through a couple of the open source Monero miners today, and everything I've checked just uses plain TCP sockets.

I'm using Claymore for Ethereum and that's stratum+tcp also.

That is interesting to note! Thanks for your reply.

So anecdotally speaking from the evidence presented by 1 response, I can safely say that TCP and SSL+TCP socket streams are all that's needed!  Wink  Would love further feedback as well.
55  Bitcoin / Mining software (miners) / Help with stratum protocol/transport questions on: January 16, 2018, 10:13:51 PM
As an exercise, I'm toying with building a stratum proxy. I know they already exist, but I'm looking to experiment with some more recent tech and this seems like a good project.

This BCT thread is a good starting point for the stratum protocol. Along with the 'canonical' stratum protocol google doc and slushpool's stratum overview, there's a fair bit to digest. Definitely not a true spec, but enough to work with.

The 'spec' defines 4 transports: Socket transport, Websocket, HTTP Poll, and HTTP Push (which is a variation of HTTP Poll). I get the feeling that much has changed since stratum was first introduced, so I'm wondering if all 4 protocols are still needed/used - is it necessary to implement them all in a proxy? What about if one was implementing a pool? For example, if miners have moved towards supporting plain TCP Socket transport only, there's no point in implementing the other 3 transports.

 - Let me know if there's a better forum board for this post - I'll move it if needed.
56  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Zclassic, Zcash Fork No Premine, No 20% Founders Tax on: January 16, 2018, 06:02:12 PM
My 5 1080 + 2 1070Ti get ~0.2 per day

I feel that this is low for your cards? I've got 6x 1070s and I've earned 0.188 per day (averaged the last week's 1.319 earnings). Maybe I'm wrong.
57  Alternate cryptocurrencies / Mining (Altcoins) / Re: hardware availability! on: January 16, 2018, 05:52:07 PM
Thanks for the replies, everyone. Camping out at a local shop isn't really an option for me, unfortunately - there's nothing of any size nearby, so I'm left with ordering online. I've backordered on a couple of sites, and one gave me this pleasant (but unfortunate) response:

Quote
Unfortunately the item that you selected is “Out of Stock” and is currently on back order and there is no stock. The ETA provided by the manufacturer is approximately 2-4 months.

Yeesh.

I suppose I should try to avoid uniform rig-building efforts (ie. identical n brand/model GPUs) if I'm ever going to complete my 8 unit rig (sitting at 6 now).
58  Alternate cryptocurrencies / Mining (Altcoins) / hardware availability! on: January 15, 2018, 11:18:22 PM
In North America, how the hell does one get ahold of GPUs? I'm looking for 1070s but everything's been sold out for a while now. I realize not many people will be willing to share their sources/methods, but seriously: how are people still able to source hardware?

Maybe I'm too noob.
59  Alternate cryptocurrencies / Mining (Altcoins) / Re: Owners of GTX 1070, what is your hashrate? on: January 15, 2018, 11:10:15 PM
Can someone tell me what CCminer version to get for GTX 1070 cards with Ubuntu ?

There are many links pointing in different directions, many modified source codes and forks, outdated versions, it is confusing as hell.

Depends on what algorithm you want to mine. For equihash, take a look and compare the following:

  • tpruvot's fork of ccminer seems to be the most active ccminer fork that I've seen; of course ccminer handles multiple algorithms, which is handy
  • ewbf is a custom equihash miner, hasn't been updated in a while
  • dstm is a custom equihash miner, actively maintained and is more recent and hashes faster than ewbf
  • bminer is a custom equihash miner, actively maintained and is more recent and hashes faster than both ewbf and dstm (marginally so for dstm, but still)

All three have devfees and can be disabled, usually with a performance decrease (CPU/GPU optimizations are disabled).
60  Alternate cryptocurrencies / Pools (Altcoins) / Re: NEW [ETH][ETC][EXP][ZEC][ZCL]MINE.PRO mining pools on: January 11, 2018, 05:40:00 AM
I'm using zcl.suprnova.cc, seems legit. Web interface is a bit laggy, but otherwise the service seems ok.
Pages: « 1 2 [3] 4 5 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!