Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

76 lines
2.4KB

  1. extends layout
  2. block headContent
  3. title Node Info
  4. block content
  5. h1 Node 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") BTC Price
  17. include btcprice
  18. tr
  19. th(class="table-active properties-header") Hash amount
  20. td(class="monospace") #{getmininginfo.networkhashps.toLocaleString()}
  21. tr
  22. th(class="table-active properties-header") Block Count
  23. td(class="monospace") #{getinfo.blocks}
  24. tr
  25. th(class="table-active properties-header") Version
  26. td(class="monospace") #{getinfo.version}
  27. tr
  28. th(class="table-active properties-header") Protocol Version
  29. td(class="monospace") #{getinfo.protocolversion}
  30. tr
  31. th(class="table-active properties-header") Connections
  32. td(class="monospace") #{getinfo.connections.toLocaleString()}
  33. tr
  34. th(class="table-active properties-header") Testnet?
  35. td(class="monospace") #{getinfo.testnet}
  36. tr
  37. th(class="table-active properties-header") Errors
  38. td(class="monospace") #{getinfo.errors}
  39. //tr
  40. // th(class="table-active properties-header") Hash Amount
  41. // td(class="monospace") #{getmininginfo.networkhashps}
  42. tr
  43. - var scales = [ {val:1000000000000000, name:"quadrillion"}, {val:1000000000000, name:"trillion"}, {val:1000000000, name:"billion"}, {val:1000000, name:"million"} ];
  44. - var scaleDone = false;
  45. th(class="table-active properties-header") Difficulty
  46. td(class="monospace")
  47. span #{getinfo.difficulty.toLocaleString()}
  48. each item in scales
  49. if (!scaleDone)
  50. - var fraction = Math.floor(getinfo.difficulty / item.val);
  51. if (fraction >= 1)
  52. - scaleDone = true;
  53. span(class="text-muted") (#{fraction} #{item.name})
  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")
  59. //if (getmininginfo)
  60. // table(class="table")
  61. // tr
  62. // th(class="table-active properties-header") Hash Amount
  63. // td(class="monospace") #{getmininginfo.networkhashps}
  64. tr
  65. th(class="table-active properties-header") Version
  66. td(class="monospace") #{getinfo.version}