Skip to content
Permalink
Browse files

Beta release

  • Loading branch information...
pascal-triangle committed Jan 2, 2019
0 parents commit 1ba59c88109298093d5faf3a32c596f7011faf51
Showing with 12,851 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +25 −0 README.md
  3. +216 −0 config-testnet.json
  4. +354 −0 init.js
  5. +1,651 −0 lib/api.js
  6. +67 −0 lib/apiInterfaces.js
  7. +379 −0 lib/blockUnlocker.js
  8. +359 −0 lib/charts.js
  9. +23 −0 lib/chartsDataCollector.js
  10. +45 −0 lib/configReader.js
  11. +256 −0 lib/daemon.js
  12. +24 −0 lib/exceptionWriter.js
  13. +236 −0 lib/jobManager.js
  14. +97 −0 lib/logger.js
  15. +57 −0 lib/market.js
  16. +459 −0 lib/paymentProcessor.js
  17. +318 −0 lib/pool.js
  18. +133 −0 lib/shareProcessor.js
  19. +459 −0 lib/stratum.js
  20. +202 −0 lib/utils.js
  21. +123 −0 lib/varDiffManager.js
  22. +985 −0 package-lock.json
  23. +39 −0 package.json
  24. +124 −0 website_example/admin.html
  25. +10 −0 website_example/config.js
  26. BIN website_example/favicon/android-chrome-192x192.png
  27. BIN website_example/favicon/android-chrome-512x512.png
  28. BIN website_example/favicon/apple-touch-icon.png
  29. +9 −0 website_example/favicon/browserconfig.xml
  30. BIN website_example/favicon/favicon-16x16.png
  31. BIN website_example/favicon/favicon-32x32.png
  32. BIN website_example/favicon/favicon.ico
  33. BIN website_example/favicon/mstile-150x150.png
  34. +142 −0 website_example/favicon/safari-pinned-tab.svg
  35. +19 −0 website_example/favicon/site.webmanifest
  36. +265 −0 website_example/index.html
  37. +412 −0 website_example/js/common.js
  38. +1 −0 website_example/js/custom.js
  39. +2 −0 website_example/lang/en.json
  40. +1 −0 website_example/lang/languages.js
  41. +30 −0 website_example/lang/timeago/jquery.timeago.af.js
  42. +30 −0 website_example/lang/timeago/jquery.timeago.am.js
  43. +104 −0 website_example/lang/timeago/jquery.timeago.ar.js
  44. +30 −0 website_example/lang/timeago/jquery.timeago.az.js
  45. +28 −0 website_example/lang/timeago/jquery.timeago.bg.js
  46. +55 −0 website_example/lang/timeago/jquery.timeago.bs.js
  47. +30 −0 website_example/lang/timeago/jquery.timeago.ca.js
  48. +34 −0 website_example/lang/timeago/jquery.timeago.cs.js
  49. +30 −0 website_example/lang/timeago/jquery.timeago.cy.js
  50. +28 −0 website_example/lang/timeago/jquery.timeago.da.js
  51. +28 −0 website_example/lang/timeago/jquery.timeago.de.js
  52. +32 −0 website_example/lang/timeago/jquery.timeago.dv.js
  53. +28 −0 website_example/lang/timeago/jquery.timeago.el.js
  54. +30 −0 website_example/lang/timeago/jquery.timeago.en.js
  55. +29 −0 website_example/lang/timeago/jquery.timeago.es.js
  56. +28 −0 website_example/lang/timeago/jquery.timeago.et.js
  57. +28 −0 website_example/lang/timeago/jquery.timeago.eu.js
  58. +32 −0 website_example/lang/timeago/jquery.timeago.fa.js
  59. +38 −0 website_example/lang/timeago/jquery.timeago.fi.js
  60. +27 −0 website_example/lang/timeago/jquery.timeago.fr.js
  61. +28 −0 website_example/lang/timeago/jquery.timeago.gl.js
  62. +26 −0 website_example/lang/timeago/jquery.timeago.he.js
  63. +54 −0 website_example/lang/timeago/jquery.timeago.hr.js
  64. +28 −0 website_example/lang/timeago/jquery.timeago.hu.js
  65. +28 −0 website_example/lang/timeago/jquery.timeago.hy.js
  66. +29 −0 website_example/lang/timeago/jquery.timeago.id.js
  67. +29 −0 website_example/lang/timeago/jquery.timeago.is.js
  68. +26 −0 website_example/lang/timeago/jquery.timeago.it.js
  69. +29 −0 website_example/lang/timeago/jquery.timeago.ja.js
  70. +28 −0 website_example/lang/timeago/jquery.timeago.jv.js
  71. +31 −0 website_example/lang/timeago/jquery.timeago.ko.js
  72. +42 −0 website_example/lang/timeago/jquery.timeago.ky.js
  73. +30 −0 website_example/lang/timeago/jquery.timeago.lt.js
  74. +30 −0 website_example/lang/timeago/jquery.timeago.lv.js
  75. +30 −0 website_example/lang/timeago/jquery.timeago.mk.js
  76. +30 −0 website_example/lang/timeago/jquery.timeago.nl.js
  77. +28 −0 website_example/lang/timeago/jquery.timeago.no.js
  78. +39 −0 website_example/lang/timeago/jquery.timeago.pl.js
  79. +28 −0 website_example/lang/timeago/jquery.timeago.pt-br.js
  80. +26 −0 website_example/lang/timeago/jquery.timeago.pt.js
  81. +29 −0 website_example/lang/timeago/jquery.timeago.ro.js
  82. +54 −0 website_example/lang/timeago/jquery.timeago.rs.js
  83. +43 −0 website_example/lang/timeago/jquery.timeago.ru.js
  84. +30 −0 website_example/lang/timeago/jquery.timeago.rw.js
  85. +28 −0 website_example/lang/timeago/jquery.timeago.si.js
  86. +34 −0 website_example/lang/timeago/jquery.timeago.sk.js
  87. +46 −0 website_example/lang/timeago/jquery.timeago.sl.js
  88. +26 −0 website_example/lang/timeago/jquery.timeago.sq.js
  89. +54 −0 website_example/lang/timeago/jquery.timeago.sr.js
  90. +28 −0 website_example/lang/timeago/jquery.timeago.sv.js
  91. +30 −0 website_example/lang/timeago/jquery.timeago.th.js
  92. +26 −0 website_example/lang/timeago/jquery.timeago.tr.js
  93. +42 −0 website_example/lang/timeago/jquery.timeago.uk.js
  94. +30 −0 website_example/lang/timeago/jquery.timeago.ur.js
  95. +29 −0 website_example/lang/timeago/jquery.timeago.uz.js
  96. +30 −0 website_example/lang/timeago/jquery.timeago.vi.js
  97. +31 −0 website_example/lang/timeago/jquery.timeago.zh-CN.js
  98. +30 −0 website_example/lang/timeago/jquery.timeago.zh-TW.js
  99. +1,166 −0 website_example/pages/account.html
  100. +127 −0 website_example/pages/admin/monitoring.html
  101. +85 −0 website_example/pages/admin/ports.html
  102. +170 −0 website_example/pages/admin/statistics.html
  103. +81 −0 website_example/pages/admin/tools.html
  104. +100 −0 website_example/pages/admin/userslist.html
  105. +333 −0 website_example/pages/blocks.html
  106. +251 −0 website_example/pages/help.html
  107. +298 −0 website_example/pages/home.html
  108. +183 −0 website_example/pages/payments.html
  109. +207 −0 website_example/pages/stats.html
  110. +178 −0 website_example/themes/admin.css
  111. +1 −0 website_example/themes/custom.css
  112. +236 −0 website_example/themes/default.css
@@ -0,0 +1,5 @@
node_modules/
.idea/

config.json
logs/*
@@ -0,0 +1,25 @@
# PascalCoin Open Source Mining Pool

## Set-up Instructions

TODO

## Credits

Various portions were used from the following open source pools, and their downstream forks:

* https://github.com/zone117x/node-cryptonote-pool
* https://github.com/snipa22/node-cryptonote-pool
* https://github.com/dvandal/cryptonote-nodejs-pool
* https://github.com/zone117x/node-open-mining-portal
* https://github.com/foxer666/node-open-mining-portal
* https://github.com/zone117x/node-stratum-pool
* https://github.com/foxer666/node-stratum-pool

Additionally, code was used from Polyminer's excellent RHMiner:

* https://github.com/polyminer1/rhminer

## Donations

Donations are accepted at 573198-21
@@ -0,0 +1,216 @@
{
/* PascalCoin Testnet Configuration */

"poolHost": "your.pool.host",

"poolName": "Free PascalCoin Pool",
"poolId": "Freepool",

"coin": "PascalCoin",
"symbol": "PASC",
"algorithm": "RandomHash",

"logging": {
"files": {
"level": "info",
"directory": "logs",
"flushInterval": 5
},
"console": {
"level": "info",
"colors": true
}
},

"poolServer": {
"enabled": true,
"connectionTimeout": 600,
"jobRebroadcastTimeout": 55,
"tcpProxyProtocol": false,
"clustering": {
"enabled": false,
"forks": "auto"
},
"ports": [
{
"port": "3333",
"diff": 0.0000001,
"desc": "Fixed difficulty"
},
{
"port": "3334",
"diff": 0.00000015,
"desc": "Variable difficulty",
"varDiff": {
"minDiff": 0.00000015,
"maxDiff": 1,
"targetTime": 15,
"retargetTime": 90,
"variancePercent": 30
}
}
],
"banning": {
"enabled": true,
"time": 600,
"invalidPercent": 50,
"checkThreshold": 500,
"purgeInterval": 300
}
},

"payments": {
"enabled": true,
"interval": 600,
"defaultPayment": 10,
"minPayment": 0.5,
"maxPayment": 100,
"pasaThreshold": 0.2,
"pasaDonations": "3GhhbosZdhiz5rdosLYaCRSG93nc2WLrob5bSX93WUie7VqX5XeArnZrPYZ9npXMvVceJf5fJqwFE4gX4ECwGEAGy86rhmRwjLS5ZF"
},

"blockUnlocker": {
"enabled": true,
"interval": 30,
"depth": 100
},

"fees": {
"poolFee": 0,
"devFee": 0.2000
},

"knownAccounts": [
{
"account": "86646-64",
"name": "Poloniex",
"requirePaymentID": true
}
],

"daemon": {
"host": "127.0.0.1",
"port": 4103,
"miningPort": 4109,
"password": "your_wallet_password",
"monitoring": {
"enabled": true,
"interval": 60
}
},

"redis": {
"host": "127.0.0.1",
"port": 6379,
"database": 0,
"prefix": "pasc_testnet",
"auth": "",
"cleanupInterval": 7 // days to keep redis data
},

"stats": {
"updateInterval": 60,
"historicalRetention": 43200,
"hashrateWindow": 300
},

"api": {
"enabled": true,
"hashrateWindow": 600,
"updateInterval": 5,
"bindIp": "0.0.0.0",
"port": 8117,
"blocks": 30,
"payments": 30,
"password": "your_admin_password",
"trustProxyIP": true
},

"charts": {
"pool": {
"hashrate": {
"enabled": true,
"updateInterval": 60,
"stepInterval": 60,
"maximumPeriod": 604800
},
"miners": {
"enabled": true,
"updateInterval": 60,
"stepInterval": 60,
"maximumPeriod": 604800
},
"workers": {
"enabled": true,
"updateInterval": 60,
"stepInterval": 60,
"maximumPeriod": 604800
},
"nethash": {
"enabled": true,
"updateInterval": 60,
"stepInterval": 60,
"maximumPeriod": 604800
},
"priceUSD": {
"enabled": true,
"updateInterval": 300,
"stepInterval": 300,
"maximumPeriod": 604800
},
"priceBTC": {
"enabled": true,
"updateInterval": 300,
"stepInterval": 300,
"maximumPeriod": 604800
}
},
"user": {
"hashrate": {
"enabled": true,
"updateInterval": 60,
"stepInterval": 60,
"maximumPeriod": 604800
},
"worker_hashrate": {
"enabled": true,
"updateInterval": 60,
"stepInterval": 60,
"maximumPeriod": 604800
},
"payments": {
"enabled": true
}
},
"blocks": {
"enabled": true,
"days": 7
}
},

"email": {
"enabled": false,
"defaultNotifications": "worker_start,worker_stop,payment_pasc,payment_pasa",
"fromAddress": "your@email.com",
"transport": "sendmail",
"sendmail": {
"path": "/usr/sbin/sendmail"
},
"smtp": {
"host": "smtp.example.com",
"port": 587,
"secure": false,
"auth": {
"user": "username",
"pass": "password"
},
"tls": {
"rejectUnauthorized": false
}
},
"mailgun": {
"key": "your-private-key",
"domain": "mg.yourdomain"
}
}
}

0 comments on commit 1ba59c8

Please sign in to comment.
You can’t perform that action at this time.