Commit Graph

319 Commits

Author SHA1 Message Date
Konstantin Crutched Anikin ed76b45f4b PPLNT fix for multiple instances. 2018-03-24 10:53:54 +07:00
sennevb 621181ce69
Merge pull request #263 from hellcatz/payment_fix
Update paymentProcessor.js
2018-01-06 22:37:30 +01:00
hellcatz 0dd13bec9d
Update paymentProcessor.js
Fixes Issue
round.confirmations = parseInt((tx.result.confirmations || 0));
^
TypeError: Cannot read property 'confirmations' of null
2018-01-06 13:35:22 -08:00
sennevb 1bccbebbf2 Update api.js 2017-10-24 06:06:46 +02:00
sennevb 289600de24 compression 2017-10-22 19:21:41 +02:00
hellcatz 3f30f01a9f Update api.js
From https://github.com/z-classic/z-nomp/pull/174/files
2017-09-04 19:56:01 -07:00
hellcatz f9cdef7a72 Update website.js 2017-09-04 15:30:01 -07:00
hellcatz 9a4497323b Update shareProcessor.js 2017-09-04 15:24:43 -07:00
hellcatz f192dd39c4 Update poolWorker.js 2017-09-04 15:16:44 -07:00
hellcatz 7233c9b726 Update paymentProcessor.js
Include balances owed in total owed checks.
2017-09-03 17:05:48 -07:00
hellcatz 8d463f5c37 Update paymentProcessor.js
Fixes for immature balance tracking.
Treat unpaid blocks as immature, until they are ready for payment.
Moved paymentsUpdate to final redis step in waterfall.
Misc improvements to payments waterfall.
2017-09-03 15:19:20 -07:00
hellcatz d8a9ec59a4 Update paymentProcessor.js
Update recommended minimums.
Cache market stats every 5 minutes, do not use payment interval.
Changes to confirmation tracking and payments waterfall.
Add immature balance calculations and tracking.
2017-09-02 10:58:16 -07:00
hellcatz eb5caf93fa Update stats.js 2017-09-01 19:19:13 -07:00
hellcatz 9911037d1b Update api.js
Add blocks api call.
Add immature balance to api.
2017-09-01 19:07:15 -07:00
hellcatz e2af3372dd Update api.js
Set `Content-Type: application/json` on api requests. This may help with browser compatibility and also allows browsers to render the json visually when directly browsing the api.
2017-08-30 17:27:15 -07:00
sennevb 5e1301406e Merge pull request #185 from madbuda/madbuda-patch-4
API Compression
2017-08-24 09:25:12 +02:00
Larry Ludlow f7499029e4 compression on api
Enables compression for api calls
2017-08-23 19:40:06 -04:00
hellcatz dfad325b54 Update paymentProcessor.js
Treat address longer than 40 chars as invalid
Treat address shorter than 30 chars as invalid
2017-08-19 09:11:14 -07:00
hellcatz 81b7e2e6ee Update paymentProcessor.js
Fix issue when opids may have been cleared from node but not pool.
Do not increase opid count when `executing` as another app may have created an operation.
2017-08-15 09:12:45 -07:00
sennevb 030ff2931b another 40chars
removed

thanks to hellcatz
2017-08-15 17:33:06 +02:00
sennevb 2c68351b4e if invalid adress + workername = 40
if invalid adress + workername = 40 chars, it doesnt get authenticated..
2017-08-15 09:34:44 +02:00
sennevb e8e52e3eb3 Merge pull request #176 from hellcatz/patch-14
Update paymentProcessor.js
2017-08-12 12:29:07 +02:00
sennevb 0c341dffc9 Merge pull request #172 from hellcatz/hellcatz-patch-13
Update paymentProcessor.js
2017-08-12 12:27:50 +02:00
sennevb 4c982a73ac Merge pull request #159 from madbuda/redispw
adding in redis password auth from UNOMP
2017-08-12 12:26:00 +02:00
hellcatz 129e11e8e3 Update paymentProcessor.js
Only manage opids created by z-nomp. All opids are still monitored.
2017-08-11 19:56:18 -07:00
hellcatz f6fe32b7e5 Update paymentProcessor.js
Oops ...  off by one ...
2017-08-03 14:43:31 -07:00
hellcatz f2786e7a5b Update paymentProcessor.js
Sort rounds during payments so blocks are paid in order.
Optimization to max blocks per payment logic.
2017-08-02 19:26:32 -07:00
sennevb 15f4912b4a Merge pull request #170 from hellcatz/zen-updates
Zen Updates
2017-07-21 22:25:54 +02:00
hellcatz d8dd19ff8b Update paymentProcessor.js
BugFix `result.result[i]` can be undefined in RPC response errors.
2017-07-19 18:41:18 -07:00
hellcatz b16990e18a Update paymentProcessor.js
Trim address of space that somehow get in the beginning or end.
2017-07-18 22:06:47 -07:00
Larry bc92044354 cleanup 2017-07-03 15:10:50 -04:00
Larry c74724c19a added redis auth 2017-07-01 20:29:54 -04:00
Larry f6966534ff adding redis auth 2017-07-01 20:27:48 -04:00
Larry bdbe9a7896 adding redis auth password 2017-07-01 20:21:18 -04:00
Larry d96fa1e06b added comments 2017-07-01 20:19:08 -04:00
Larry 6bf70dfb20 adding redis password auth 2017-07-01 20:18:03 -04:00
Larry 1785519db3 adding redis password auth 2017-07-01 20:16:44 -04:00
Joshua McKenzie 04ef1a4cc0 Added Headers to Minerpage (#158)
Chrome was wrapping the minerpage html in a <pre> element and not rendering the worker stat page properly. I added ```res.header('Content-Type', 'text/html');``` to the function and now it renders perfectly.
2017-07-01 15:19:27 -04:00
hellcatz f6f6f0c712 Fix zen market stats, Add payment page example (#153)
* Update paymentProcessor.js

Fix market stats for zen

* Update paymentProcessor.js

* Update zcash_testnet.json

Undo ZEN changes to zcash file.

* Update zcash.json

Undo ZEN changes to zcash file.

* Update website.js

Add example payments page.

* Create payments.html

* Update payments.html

* Update payments.html
2017-06-04 01:32:41 -04:00
hellcatz 8fd1d7eceb Fixes & Zen Updates (#149)
* Create zen.json

* Update api.js

Remove unnecessary address.startWith() check in api for improved support of future Zcash forks.

* Update zen.json

* Update paymentProcessor.js

Improved operation id handling during RPC call errors.
Improved error handling and reporting during payment RPC call errors.
Force final rounding of addressAmounts array.
Limit tries when reducing rewards due to insufficient funds.
Do not processPayments at start of z-nomp.

* Update paymentProcessor.js

Improved error handling in cacheNetworkStats()
Updates to error messages

* Update paymentProcessor.js

Remove false positive

* Update paymentProcessor.js

Remove another false positive
2017-05-30 18:15:34 -04:00
hellcatz aa25a81fe1 Improvements to Shielding Process (#147)
* Update paymentProcessor.js

Improved balance rounding and conversions for listUnspent and listUnspentZ

* Update paymentProcessor.js

Extra error detection in RPC callback for listUnspent and listUnspentZ

* Update paymentProcessor.js

logger message fixup

* Update paymentProcessor.js

* Update paymentProcessor.js

Do not process balances equal to fee in sendTToZ and sendZToT

* Update paymentProcessor.js

* Update paymentProcessor.js

* Update paymentProcessor.js

Clear opidCount when daemon reports no operations in progress.

* Update paymentProcessor.js

Default paymentInterval to 3 minutes if missing from pool config.
Warn users on paymentInterval less than 3 minutes.
Force paymentInterval no less than 1 minute to reduce RPC work queue.
Default walletInterval to 1 minute if missing from pool config.
Force walletInterval no less than 1 minute to reduce RPC work queue.
2017-05-25 16:40:53 -04:00
Procrastinator ec70c56327 Fixup Fixup 2017-05-14 02:09:56 -04:00
Procrastinator 606bc1f0a8 Update paymentProcessor.js 2017-05-14 01:56:39 -04:00
Procrastinator 291c26360d Update paymentProcessor.js 2017-05-14 01:52:26 -04:00
hellcatz c5bdda780c Update stats.js
Bugfix to bugfix ;)
2017-05-13 16:13:45 -07:00
hellcatz 9f0a8f5c32 Update stats.js
BugFix for miner balance reporting.
2017-05-13 16:10:55 -07:00
hellcatz ee27470e7a Update stats.js 2017-05-13 15:50:42 -07:00
hellcatz 6edd190842 Update api.js 2017-05-13 15:50:05 -07:00
hellcatz fe78759bf8 Update stats.js 2017-05-07 22:47:59 -07:00
hellcatz edf10ef2c9 Update stats.js
Add currentRoundTimes to stats.
2017-05-07 14:37:55 -07:00