File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,11 @@ def test_update():
148
148
'''Perform lookup for newer proxy version, on startup and then once a day.
149
149
When new version is found, it starts printing warning message and turned off next checks.'''
150
150
151
- GIT_URL = 'https://raw.github.com/slush0/stratum-mining-proxy/master/'
152
- VERSION_FILE = 'mining_libs/version.py'
151
+
661F
GIT_URL = 'https://raw.github.com/slush0/stratum-mining-proxy/master/mining_libs/version.py'
153
152
154
153
import urllib2
155
154
log .warning ("Checking for updates..." )
156
- if open ( VERSION_FILE ). read () != urllib2 .urlopen (GIT_URL + VERSION_FILE ).read ():
155
+ if version . VERSION not in urllib2 .urlopen (GIT_URL ).read ():
157
156
print_deprecation_warning ()
158
157
return # New version already detected, stop periodic checks
159
158
reactor .callLater (3600 * 24 , test_update )
You can’t perform that action at this time.
0 commit comments