dashboard
This commit is contained in:
@@ -333,8 +333,8 @@ class RinCoinMiningPool:
|
||||
4
|
||||
])
|
||||
|
||||
# Send difficulty
|
||||
self.send_stratum_notification(client, "mining.set_difficulty", [1])
|
||||
# Send difficulty (lower for CPU mining)
|
||||
self.send_stratum_notification(client, "mining.set_difficulty", [0.001])
|
||||
|
||||
# Send initial job
|
||||
if self.get_block_template():
|
||||
@@ -433,12 +433,15 @@ class RinCoinMiningPool:
|
||||
nonce = params[3]
|
||||
|
||||
# Record share
|
||||
self.record_share(miner_info['miner_id'], job_id, 1.0) # Simplified difficulty
|
||||
self.record_share(miner_info['miner_id'], job_id, 0.001) # Use actual difficulty
|
||||
miner_info['shares'] += 1
|
||||
miner_info['last_share'] = time.time()
|
||||
|
||||
print(f"[{addr}] ✅ Share accepted from {miner_info['user']}.{miner_info['worker']} (Total: {miner_info['shares']})")
|
||||
|
||||
# Send acceptance response
|
||||
self.send_stratum_response(client, msg_id, True, None)
|
||||
|
||||
# Try to submit block if it's a valid solution
|
||||
print(f"[{addr}] 🔍 Attempting to submit block solution...")
|
||||
|
||||
|
Reference in New Issue
Block a user