include share type in share explorer
authorForrest Voight <forrest@forre.st>
Tue, 20 Mar 2012 18:51:33 +0000 (14:51 -0400)
committerForrest Voight <forrest@forre.st>
Tue, 20 Mar 2012 19:43:04 +0000 (15:43 -0400)
p2pool/web.py

index 16a7caf..55b59e9 100644 (file)
@@ -267,7 +267,7 @@ def get_web_root(tracker, current_work, current_work2, get_current_txouts, datad
             
             format_bits = lambda bits: '%f (bits=%#8x) Work required: %sH</p>' % (bitcoin_data.target_to_difficulty(bits.target), bits.bits, math.format(bitcoin_data.target_to_average_attempts(bits.target)))
             
-            request.write('<h1>Share <a href="%x">%s</a></h1>' % (share.hash, p2pool_data.format_hash(share.hash)))
+            request.write('<h1>%s <a href="%x">%s</a></h1>' % (share.__class__, share.hash, p2pool_data.format_hash(share.hash)))
             if share.previous_hash is not None:
                 request.write('<p>Previous: <a href="%x">%s</a>' % (share.previous_hash, p2pool_data.format_hash(share.previous_hash)))
             if tracker.get_height(share.hash) >= 100: