show desired version in share explorer
authorForrest Voight <forrest@forre.st>
Thu, 3 May 2012 22:17:12 +0000 (18:17 -0400)
committerForrest Voight <forrest@forre.st>
Thu, 3 May 2012 22:17:46 +0000 (18:17 -0400)
p2pool/web.py
web-static/share.html

index 78f60d5..725b991 100644 (file)
@@ -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,
index 160e99a..9990af8 100644 (file)
@@ -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: ')