You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.1KB

  1. extends layout
  2. block headContent
  3. title Network Info
  4. block content
  5. h1 Network Info
  6. hr
  7. if (getinfo)
  8. //p Data from RPC command
  9. // a(href="https://bitcoin.org/en/developer-reference#getinfo") getinfo
  10. if (false)
  11. pre
  12. code #{JSON.stringify(getinfo, null, 4)}
  13. if (true)
  14. table(class="table")
  15. tr
  16. th(class="table-active properties-header") Hash amount
  17. td(class="monospace") #{getmininginfo.networkhashps.toLocaleString()}
  18. tr
  19. th(class="table-active properties-header") Block Count
  20. td(class="monospace") #{getinfo.blocks}
  21. tr
  22. th(class="table-active properties-header") Version
  23. td(class="monospace") #{getinfo.version}
  24. tr
  25. th(class="table-active properties-header") Protocol Version
  26. td(class="monospace") #{getinfo.protocolversion}
  27. tr
  28. th(class="table-active properties-header") Connections
  29. td(class="monospace") #{getinfo.connections.toLocaleString()}
  30. tr
  31. th(class="table-active properties-header") BTC Price
  32. include btcprice
  33. //tr
  34. // th(class="table-active properties-header") Hash Amount
  35. // td(class="monospace") #{getmininginfo.networkhashps}
  36. tr
  37. - var scales = [ {val:1000000000000000, name:"quadrillion"}, {val:1000000000000, name:"trillion"}, {val:1000000000, name:"billion"}, {val:1000000, name:"million"} ];
  38. - var scaleDone = false;
  39. th(class="table-active properties-header") Difficulty
  40. td(class="monospace")
  41. span #{getinfo.difficulty.toLocaleString()}
  42. each item in scales
  43. if (!scaleDone)
  44. - var fraction = Math.floor(getinfo.difficulty / item.val);
  45. if (fraction >= 1)
  46. - scaleDone = true;
  47. span(class="text-muted") (#{fraction} #{item.name})
  48. tr
  49. th(class="table-active properties-header") Testnet?
  50. td(class="monospace") #{getinfo.testnet}
  51. tr
  52. th(class="table-active properties-header") Errors
  53. td(class="monospace") #{getinfo.errors}
  54. //tr
  55. // th(class="table-active properties-header") Nodes
  56. // td
  57. // a(href="https://smartcash.bitcoiner.me/smartnodes/worldmap/")
  58. // img(src="https://smartcash.bitcoiner.me/smartnodes/worldmap/map.php")