From: Forrest Voight Date: Thu, 3 May 2012 22:17:12 +0000 (-0400) Subject: show desired version in share explorer X-Git-Tag: 0.11.2~36 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=5e361db67a2d8de38d4f05b6846bd050e88789ca show desired version in share explorer --- diff --git a/p2pool/web.py b/p2pool/web.py index 78f60d5..725b991 100644 --- a/p2pool/web.py +++ b/p2pool/web.py @@ -270,6 +270,7 @@ def get_web_root(tracker, current_work, current_work2, get_current_txouts, datad donation=share.share_data['donation']/65535, stale_info=share.share_data['stale_info'], nonce=share.share_data['nonce'], + desired_version=share.share_data['desired_version'], ), block=dict( hash='%064x' % share.header_hash, diff --git a/web-static/share.html b/web-static/share.html index 160e99a..9990af8 100644 --- a/web-static/share.html +++ b/web-static/share.html @@ -53,6 +53,7 @@ b.append('p').text('Donation amount: ' + d3.format('.3p')(share.share_data.donation)); b.append('p').text('Stale info: ' + (share.share_data.stale_info == 0 ? 'none' : share.share_data.stale_info == 253 ? 'had an orphan' : share.share_data.stale_info == 254 ? 'had a dead' : 'unknown')); b.append('p').text('Nonce: ' + share.share_data.nonce); + b.append('p').text('Desired version: ' + share.share_data.desired_version); b.append('h2').text('Block'); var block = b.append('p') block.append('span').text('Hash: ')