OCEAN-xyz / datum_gateway

Decentralized Alternative Templates for Universal Mining
Other
34 stars 9 forks source link

Not getting shares accepted (Solo mining) #34

Closed 21M4TW closed 3 hours ago

21M4TW commented 4 hours ago

Hi,

I might be missing something obvious here since I am new with mining. but I am not getting shares accepted with datum_gateway. I have not tried to attach it to the Ocean pool, I was trying solo mining first, but I see the following on the dashboard. I am not even sure the output is abnormal for solo mining when there is no pool, but some of the output looks odd to me, and I put it in bold below:

Decentralized Client Stats Shares Accepted: 0 (0 diff) Shares Rejected: 0 (0 diff)

Stratum Server Info Active Threads: | 8 Total Connections: | 2 Total Work Subscriptions: | 2 Estimated Hashrate: | 6.76 Th/sec

In the datum_gateway log file I see messages such as: 2024-10-26 11:27:29.279 [ datum_gateway_template_thread] INFO: Updating standard stratum job for block 867459: 3.16803942 BTC, 5500 txns, 1681945 bytes (Sent to 2 stratum clients) 2024-10-26 11:27:29.293 [ update_stratum_job] DEBUG: Updated to job 223, ncb = 1, state = 5 2024-10-26 11:27:29.305 [ datum_coinbaser_thread] DEBUG: Job 223 needs a coinbaser! 2024-10-26 11:27:29.305 [ datum_coinbaser_thread] DEBUG: Generating coinbases for up to 0 outputs 2024-10-26 11:27:29.305 [ datum_coinbaser_thread] DEBUG: Generated and notified. 2024-10-26 11:27:29.306 [ datum_stratum_v1_socket_thread_loop] DEBUG: Pacing job update for thread 6 to 1 clients @ 37000 ms 2024-10-26 11:27:29.309 [ datum_stratum_v1_socket_thread_loop] DEBUG: Pacing job update for thread 0 to 1 clients @ 37000 ms

And in one of the miner's log file: 2024-10-26 14:56:18 841 INFO work_difficulty=16384.000000,max=4096.000000,min=0.000000 2024-10-26 14:56:19 401 INFO work_difficulty=16384.000000,max=4096.000000,min=0.000000 2024-10-26 14:56:20 742 INFO work_difficulty=16384.000000,max=4096.000000,min=0.000000 2024-10-26 14:56:20 742 INFO Submitting share 00009440 to pool 0 2024-10-26 14:56:20 742 WARN (5s):8.229T (1m):4.979T (5m):4.329T (15m):4.200T (avg):4.227Th/s 2024-10-26 14:56:21 194 INFO work_difficulty=16384.000000,max=4096.000000,min=0.000000 2024-10-26 14:56:21 957 INFO Testing pool (null) 2024-10-26 14:56:21 957 WARN No Stratum, GBT or Solo support in pool 1 (null) unable to use 2024-10-26 14:56:21 957 INFO Testing pool (null) 2024-10-26 14:56:21 957 WARN No Stratum, GBT or Solo support in pool 2 (null) unable to use

Am I missing anything here? In the datum_gateway config file I have not forgotten to set the following fields: -pool_address to a segwit address -coinbase_tag_primary -coinbase_tag_secondary -pool_host to "" -pooled_mining_only to false

Thanks!

wizkid057 commented 4 hours ago

Looks like it's working...?

The dashboard stats in the top are only for pooled shares. You need to look at the client list to see non-pooled shares, currently.

21M4TW commented 3 hours ago

Looks like it's working...?

The dashboard stats in the top are only for pooled shares. You need to look at the client list to see non-pooled shares, currently.

The client list shows the following. Not sure what TID and CID are: TID/CID RemHost Auth Username Subbed Last Accepted VDiff DiffA (A) DiffR (R) Hashrate (age) Coinbase UserAgent Command 0/0 192.168.2.13 worker3 b10cf00d 5037.9s 7.2s 16384 4653056 (284) 0 (0) 0.00% 3.59 Th/s (48.2s) Default cgminer/4.11.1
6/0 192.168.2.11 worker1 b08cf00d 39690.9s 9.7s 16384 39387136 (2404) 16384 (1) 0.04% 2.25 Th/s (19.2s) Default cgminer/4.11.1

The hashrate as shown by DATUM varies widely (+/- 25%) vs what the minertells me

wizkid057 commented 3 hours ago

Looks like accepted shares are > 0, so is working.

21M4TW commented 3 hours ago

Looks like accepted shares are > 0, so is working.

Ok, thanks for confirming!