8000 Fixed mining.subcribe, response may contain another fields. · coderlv/stratum-mining-proxy@b933cdf · GitHub
[go: up one dir, main page]

Skip to content

Commit b933cdf

Browse files
author
slush
committed
Fixed mining.subcribe, response may contain another fields.
1 parent 27e8dce commit b933cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mining_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def on_connect(f, workers, job_registry):
9898

9999
# Subscribe for receiving jobs
100100
log.info("Subscribing for mining jobs")
101-
(_, extranonce1, extranonce2_size) = (yield f.rpc('mining.subscribe', []))
101+
(_, extranonce1, extranonce2_size) = (yield f.rpc('mining.subscribe', []))[:3]
102102
job_registry.set_extranonce(extranonce1, extranonce2_size)
103103
stratum_listener.StratumProxyService._set_extranonce(extranonce1, extranonce2_size)
104104

0 commit comments

Comments
 (0)
0