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
291 stars 436 forks source link

Not getting payments #201

Open gwbraa opened 6 years ago

gwbraa commented 6 years ago

Hey everyone

I am getting this message

Error sending payments {"code":-6,"message":"Coinbase funds can only be sent to a zaddr"}

I setup everything the z_address and everything

DeckerSU commented 6 years ago

I was tried to setup z-nomp for VoteCoin and get this error too, when pool tries to make payments. Of course i filled address, zAddress and tAddress in configs. No idea yet what we do wrong.

p.s. May be problem in Tx Fee settings. Seems funds not tranfer to Z address before making payments. I increased Tx Fee to 0.0001 and will try again. If i have any results - will write here.

p.p.s. Now it's all clear. There two errors in my case - low tx fee and i forget to set "requireShielding": true for coin. All works fine.

jcreyesb commented 6 years ago

Hi @gwbraa did you resolved? i am deploying bitcoinz pool and my config: Coin: { "name": "Bitcoinz", "symbol": "btcz", "algorithm": "equihash", "requireShielding": true, "txfee": 0.0001

}

pool:"coin": "bitcoinz.json",

"coin": "bitcoinz.json",

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

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

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

"walletInterval": 2.5,

"rewardRecipients": {
    "t1diyf84HoFYztg.....":1.5
},

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

},

"paymentProcessing": {
    "minConf": 10,
    "enabled": true,
    "paymentMode": "prop",
    "_comment_paymentMode":"prop, pplnt",
    "paymentInterval": 20,
    "minimumPayment": 100,
    "maxBlocksPerPayment": 1,
    "daemon": {
        "host": "127.0.0.1",
        "port": 3333,
        "user": "xxxx",
        "password": "xxx"
    }
},

but always show the error

017-10-07 04:50:39 [Payments] [bitcoinz] Insufficient funds (0) to process payments (12312.5); possibly waiting for txs.

my balance ubuntu@ip-172-31-34-70:~/bitcoinz-pkg$ ./zcash-cli z_gettotalbalance { "transparent": "12312.5001", "private": "0.00", "total": "12312.5001" }

DeckerSU commented 6 years ago

@jcreyesb how many confirmations your transparent balance have? Show:

./zcash-cli z_gettotalbalance 11
jcreyesb commented 6 years ago

ubuntu@ip-172-31-34-70:~/bitcoinz-pkg$ ./zcash-cli z_gettotalbalance 11 { "transparent": "12312.5001", "private": "0.00", "total": "12312.5001" }

and update this file

z-nomp/libs/paymentProcessor.js starting line 294

  var amount = satoshisToCoins(zBalance - 10000);
    // unshield no more than 100 ZEC at a time
    if (amount > 20000.0)
        amount = 20000.0;

the message

2017-10-07 20:23:07 [Payments] [bitcoinz] sendmany "" {"t1Mm35vnPouATuRfQY5u28QzP2pd357UPMw":3715.74643255,"t1diyf84HoFYztgXRwJK4GCNHkijtiXza9Z":4044.10 318236,"t1Z5rnKPKhQAEUgqE6qUL2zV9BzgrTtqJsd":2043.14786391,"t1cMVc5pgy5RhPJge3orfQLyVaiH5UHmRpG":199.50174234,"t1dagquiX1QgEpXXcmZADn5RvMbiGeDPeyW":600.0 426418,"t1SSNbMzhuQkcnJ8xL2sYh1SqQDKYsSY7K2":1573.18742315} 2017-10-07 20:23:07 [Payments] [bitcoinz] Error sending payments {"code":-6,"message":"Coinbase funds can only be sent to a zaddr"}

abakus1 commented 6 years ago

Do You resolve problem with : 2017-10-07 20:23:07 [Payments] [bitcoinz] Error sending payments {"code":-6,"message":"Coinbase funds can only be sent to a zaddr"}. Becouse I have the same problem

jcreyesb commented 6 years ago

Yes .. z-nomp/libs/paymentProcessor.js starting line 294

var amount = satoshisToCoins(zBalance - 10000); // unshield no more than 100 ZEC at a time if (amount > 20000.0) amount = 20000.0;

And upgrade ram Android swap

jcreyesb commented 6 years ago

Upgrade RAM memory ti 4GB and swap