Nice!
Now, how can we make it hop ready?
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
Pool: http://pool.bitclockers.com:8332/
Queued work requests: 220
Share submissions: 212
Accepted shares: 208
Rejected shares: 4
Reject ratio: 1.9
Efficiency (accepted / queued): 95%
Discarded work due to new blocks: 1
Stale submissions discarded due to new blocks: 17
Unable to get work from server occasions: 0
Submitting work remotely delay occasions: 16
--- website.py.orig 2011-08-07 14:53:03.106954661 +0200
+++ website.py.new 2011-08-07 15:21:38.006454500 +0200
@@ -53,7 +53,7 @@ class dynamicSite(resource.Resource):
application_path = os.path.dirname(__file__)
index = parser.read(os.path.join(application_path, index_name))
except:
- index = index_name
+ index = os.path.join(application_path, index_name)
file = open(index, 'r')
linestring = file.read()
file.close
cd /home/user/bithopper/bin/bitHopper/ && ./bitHopper.py --scheduler=AltSliceScheduler
cd / && /home/user/bithopper/bin/bitHopper/bitHopper.py --scheduler=AltSliceScheduler
web.Server Traceback (most recent call last):: [Errno 2] No such file or directory: 'index-altslice.html'
/usr/lib/python2.6/dist-packages/twisted/web/server.py, line 125 in process
123 try:
124 resrc = self.site.getResourceFor(self)
125 self.render(resrc)
126 except:
Self
site
twisted.web.server.Site instance @ 0x96d45cc
Locals
resrc
website.dynamicSite instance @ 0x995f74c
self
twisted.web.server.Request instance @ 0x995f38c
/usr/lib/python2.6/dist-packages/twisted/web/server.py, line 132 in render
130 def render(self, resrc):
131 try:
132 body = resrc.render(self)
133 except UnsupportedMethod, e:
Locals
resrc
website.dynamicSite instance @ 0x995f74c
self
twisted.web.server.Request instance @ 0x995f38c
Globals
UnsupportedMethod
/usr/lib/python2.6/dist-packages/twisted/web/resource.py, line 210 in render
208 from twisted.web.error import UnsupportedMethod
209 raise UnsupportedMethod(getattr(self, 'allowedMethods', ()))
210 return m(request)
211
Locals
m>
self
website.dynamicSite instance @ 0x995f74c
request
twisted.web.server.Request instance @ 0x995f38c
/home/user/bithopper/bin/bitHopper/website.py, line 57 in render_GET
55 except:
56 index = index_name
57 file = open(index, 'r')
58 linestring = file.read()
Locals
index 'index-altslice.html'
index_name 'index-altslice.html': [Errno 2] No such file or directory: 'index-altslice.html'
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py", line 251, in dataReceived
why = self.lineReceived(line)
File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 1573, in lineReceived
self.allContentReceived()
File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 1641, in allContentReceived
req.requestReceived(command, path, version)
File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 807, in requestReceived
self.process()
------
File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 125, in process
self.render(resrc)
File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 132, in render
body = resrc.render(self)
File "/usr/lib/python2.6/dist-packages/twisted/web/resource.py", line 210, in render
return m(request)
File "/home/user/bithopper/bin/bitHopper/website.py", line 57, in render_GET
file = open(index, 'r')
exceptions.IOError: [Errno 2] No such file or directory: 'index-altslice.html'
... 14:59:56] Accepted 479df52a GPU 0 thread 0 pool 8
[2011-08-07 15:00:02] Accepted 259ced85 GPU 0 thread 1 pool 8
[2011-08-07 15:00:10] Pool 8 communication failure, caching submissions
[2011-08-07 15:00:10] Stale share detected, discarding
iff --git a/work.py b/work.py
index 34330b2..9b23a6b 100644
--- a/work.py
+++ b/work.py
@@ -126,10 +126,10 @@ def jsonrpc_getwork(agent, server, data, j_id, request, bitHopper):
work = None
while work == None:
i += 1
- if data == [] and i > 1:
+ if data == [] and i > 4:
server = bitHopper.get_new_server(server)
try:
- if i > 4:
+ if i > 8:
time.sleep(0.1)
work = yield jsonrpc_call(agent, server,data,bitHopper)
except Exception, e:
... 14:59:56] Accepted 479df52a GPU 0 thread 0 pool 8
[2011-08-07 15:00:02] Accepted 259ced85 GPU 0 thread 1 pool 8
[2011-08-07 15:00:10] Pool 8 communication failure, caching submissions
[2011-08-07 15:00:10] Stale share detected, discarding