Skip to content

Commit

Permalink
Display header version in hex
Browse files Browse the repository at this point in the history
  • Loading branch information
veqtrus committed Jun 9, 2016
1 parent db9e7cd commit 304d2e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web-static/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
block.append('span').text('Hash: ')
block.append('a').attr('href', currency_info.block_explorer_url_prefix + share.block.hash).text(share.block.hash);
b.append('h3').text('Header');
b.append('p').text('Version: ' + share.block.header.version);
b.append('p').text('Version (dec): ' + share.block.header.version);
b.append('p').text('Version (hex): ' + share.block.header.version.toString(16));
var prevblock = b.append('p')
prevblock.append('span').text('Previous block: ');
prevblock.append('a').attr('href', currency_info.block_explorer_url_prefix + share.block.header.previous_block).text(share.block.header.previous_block);
Expand Down

0 comments on commit 304d2e8

Please sign in to comment.