z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
290 stars 440 forks source link

Payments #183

Closed DrHyperKALICH closed 7 years ago

DrHyperKALICH commented 7 years ago

Hello!

Please help me with a payments:

{ "enabled": true, "coin": "zclassic.json",

"address": "t1YYXtvbFddHxo2FD8cG2cmaQC5cTiymPo1",
"_comment_address": "a transparent address to send coinbase rewards to and to transfer to zAddress.",

"zAddress": "zcEDs7wcJ5LbEhbK7te1miMUehkNGNEGPGEzLTVtSxqU88oj8AfemxK8CX8zrFrWX62DGZjtFma1UPqBVpYqTP3tttzonJb",
"_comment_zAddress": "a private address used to send coins to tAddress.",

"tAddress": "t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2",
"_comment_tAddress": "transparent address used to send payments, make this a different address, otherwise payments will not send",

"walletInterval": 2.5,

"rewardRecipients": {
"t1ZinrAhuu2WsrMowHKCo2qtRZveLwB215P": 0.5,
"t1R3rPuVGdz5uiURixUHxUW1Q5YyYQxmFBm": 0.5
},

"tlsOptions": {
    "enabled": false,
    "serverKey":"",
    "serverCert":"",
    "ca":""
},

"paymentProcessing": {
"minConf": 10,
    "enabled": true,
    "paymentMode": "prop",
    "_comment_paymentMode":"prop, pplnt",
    "paymentInterval": 180,
    "minimumPayment": 0.1,
    "maxBlocksPerPayment": 3,
    "daemon": {
        "host": "127.0.0.1",
        "port": 8202,
        "user": "---",
        "password": "---l"
    }
},

4 blocks found. Coins shielded and unshielded. Now on t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2

http://zclexplorer.org/address/t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2

Final Balance | 37.12441845 ZCL

But there is still no payments....

2017-08-22 13:31:01 [Payments] [zclassic] Insufficient funds (??) for payments (36.99691111), decreasing rewards by 0.1% and retrying 2017-08-22 13:31:01 [Payments] [zclassic] Insufficient funds (??) for payments (36.9599142), decreasing rewards by 0.2% and retrying 2017-08-22 13:31:01 [Payments] [zclassic] Insufficient funds (??) for payments (36.9229173), decreasing rewards by 0.3% and retrying 2017-08-22 13:31:01 [Payments] [zclassic] Insufficient funds (??) for payments (36.88592038), decreasing rewards by 0.4% and retrying 2017-08-22 13:31:01 [Payments] [zclassic] sendmany "" {"t1QZXfE75WKFfs3nRJSY9cy9L35hH5F6Lin":7.34275215,"t1Rbmua1iDjb1aR5CHaE2WnRgR4YTrA8Kpm":28.23459644,"t1ND8YaNqjyyU2dh7NSHuDpsTjRQeE55bab":1.27157486} 2017-08-22 13:31:01 [Payments] [zclassic] Error sending payments, decreased rewards by too much!!! 2017-08-22 13:31:01 [Payments] [zclassic] Finished interval - time spent: 10ms total, 1ms redis, 2ms daemon RPC

in addition:

~/zclassic/src# ./zcash-cli listreceivedbyaddress 0 true [ { "address": "t1R3rPuVGdz5uiURixUHxUW1Q5YyYQxmFBm", "account": "no", "amount": 0.00000000, "confirmations": 0, "txids": [ ] }, { "address": "t1YYXtvbFddHxo2FD8cG2cmaQC5cTiymPo1", "account": "no", "amount": 0.00000000, "confirmations": 0, "txids": [ ] }, { "address": "t1ZinrAhuu2WsrMowHKCo2qtRZveLwB215P", "account": "no", "amount": 0.00000000, "confirmations": 0, "txids": [ ] }, { "address": "t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2", "account": "no", "amount": 37.12441845, "confirmations": 25, "txids": [ "3857e79030169e69e4ef172aa30ede8c438034716ae37ecd066217e8284d6356", "aca0d4b900e181a30db99975cb14af8ae2a113f03a4e576de1db9e91985a6394", "09d7e6b3d2c60c641765377cc0ff113a398f64258837c5b51ef235f8a4991e95" ] }, { "address": "t1bAqvcgteBwZSWkRknkKgdQmQKseKQfEUQ", "account": "", "amount": 0.00000000, "confirmations": 0, "txids": [ ] } ]

lludlow commented 7 years ago

@DrHyperKALICH you should have some output on the z-nomp server for payments, can you provide the message?

DrHyperKALICH commented 7 years ago

i see only this in z-nomp logs: 2017-08-22 13:31:01 [Payments] [zclassic] Insufficient funds (??) for payments (36.99691111), decreasing rewards by 0.1% and retrying 2017-08-22 13:31:01 [Payments] [zclassic] Insufficient funds (??) for payments (36.9599142), decreasing rewards by 0.2% and retrying 2017-08-22 13:31:01 [Payments] [zclassic] Insufficient funds (??) for payments (36.9229173), decreasing rewards by 0.3% and retrying 2017-08-22 13:31:01 [Payments] [zclassic] Insufficient funds (??) for payments (36.88592038), decreasing rewards by 0.4% and retrying 2017-08-22 13:31:01 [Payments] [zclassic] sendmany "" {"t1QZXfE75WKFfs3nRJSY9cy9L35hH5F6Lin":7.34275215,"t1Rbmua1iDjb1aR5CHaE2WnRgR4YTrA8Kpm":28.23459644,"t1ND8YaNqjyyU2dh7NSHuDpsTjRQeE55bab":1.27157486} 2017-08-22 13:31:01 [Payments] [zclassic] Error sending payments, decreased rewards by too much!!! 2017-08-22 13:31:01 [Payments] [zclassic] Finished interval - time spent: 10ms total, 1ms redis, 2ms daemon RPC

so z-nomp think there is not enough money, but there is 37.12441845 coins on the tAddress t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2 and this address is in settings

lludlow commented 7 years ago

no, it is this 2017-08-22 13:31:01 [Payments] [zclassic] Error sending payments, decreased rewards by too much!!!

I would just send 5 ZCL to the payment address to resolve it

DrHyperKALICH commented 7 years ago

So, pool cannt send payouts, and trying to decreased it. May be I need to set t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2 account as default for sending coins in wallet, but how?

lludlow commented 7 years ago

See edit above

you are using that address to send payments

"tAddress": "t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2", "_comment_tAddress": "transparent address used to send payments, make this a different address, otherwise payments will not send",

Send a few ZCL to t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2

lludlow commented 7 years ago

@DrHyperKALICH My guess is someone has a balance, so balanced owed to miner x - balance of t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2 = not enough to send payment

DrHyperKALICH commented 7 years ago

t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2 have balance 37.12441845 and its unable to pay 36.88592038 ? Something strange

Miners balances: "t1QZXfE75WKFfs3nRJSY9cy9L35hH5F6Lin":7.34275215, "t1Rbmua1iDjb1aR5CHaE2WnRgR4YTrA8Kpm":28.23459644, "t1ND8YaNqjyyU2dh7NSHuDpsTjRQeE55bab":1.27157486

lludlow commented 7 years ago

Have you looked at redis for all balances?

DrHyperKALICH commented 7 years ago

No, its info from logs. Can you advise me the right command for redis-cli?

lludlow commented 7 years ago

https://redis.io/commands https://github.com/z-classic/z-nomp#3-start-the-portal

Provides a link to redis-commander as well

DrHyperKALICH commented 7 years ago

0.2 ZCL was send to t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2 I will install redis-commander now

DrHyperKALICH commented 7 years ago

There is no payout sections in redis db

DrHyperKALICH commented 7 years ago

Its even cannt send 1 block reward

2017-08-22 15:46:41 [Payments] [zclassic] Insufficient funds (??) for payments (12.26542077), decreasing rewards by 0.1% and retrying 2017-08-22 15:46:41 [Payments] [zclassic] Insufficient funds (??) for payments (12.25315536), decreasing rewards by 0.2% and retrying 2017-08-22 15:46:41 [Payments] [zclassic] Insufficient funds (??) for payments (12.24088993), decreasing rewards by 0.3% and retrying 2017-08-22 15:46:41 [Payments] [zclassic] Insufficient funds (??) for payments (12.22862451), decreasing rewards by 0.4% and retrying 2017-08-22 15:46:41 [Payments] [zclassic] sendmany "" {"t1QZXfE75WKFfs3nRJSY9cy9L35hH5F6Lin":6.07986859,"t1Rbmua1iDjb1aR5CHaE2WnRgR4YTrA8Kpm":6.13649049} 2017-08-22 15:46:41 [Payments] [zclassic] Error sending payments, decreased rewards by too much!!!

lludlow commented 7 years ago

Did you make changes to https://github.com/z-classic/z-nomp/blob/master/libs/paymentProcessor.js

As for where to look in redis rounds are under each coin, they remain there until paid, once paid the round is delete and payment recorded.

It is good practices to pre-load the payment address with enough coins to cover maxBlocksPerPayment,

I would suggest you familiarize yourself with libs/*.js to get a solid understanding on how things work on the back-end to better be able to troubleshoot issues

DrHyperKALICH commented 7 years ago

I did not change the paymentProcessor.js round are on their places, no payment records... Thanks for your suggestion, i will, but now i am only want payouts )

DrHyperKALICH commented 7 years ago

Plz help me with payouts, sending ZCL to t1aLKiw8tb5em2WzsMBgMH4c6jW3xQG2QJ2 did not help.

DrHyperKALICH commented 7 years ago

z_gettotalbalance { "transparent": "150.19847683", "private": "0", "total": "150.19847683" }

Is private must be 0?

DrHyperKALICH commented 7 years ago

listunspent gives me a lot of tx with "spendable": true

hellcatz commented 7 years ago

Just referencing relevant code that will throw the error... https://github.com/z-classic/z-nomp/blob/master/libs/paymentProcessor.js#L1068-L1076

For some reason the RPC response to sendmany from coin daemon contains insufficient funds as you can see the check in code.

It looks like your passing this check https://github.com/z-classic/z-nomp/blob/master/libs/paymentProcessor.js#L821

Sorry I don't have answer, but this info may help find it....

interbiznw commented 6 years ago

Did you have a resolution to this @DrHyperKALICH

cryptozeny commented 6 years ago

@interbiznw i found a solution. you have to use ""

getaccountaddress ""

because

libs/paymentProcessor.js:                    var rpccallTracking = 'sendmany "" '+JSON.stringify(addressAmounts);

nomp send from "" address