Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Insufficient funds (0) to process payments (12312.5); possibly waiting for txs. #208

Open
jcreyesb opened this issue Oct 7, 2017 · 17 comments

Comments

@jcreyesb
Copy link

jcreyesb commented Oct 7, 2017

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"
}
i changed

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

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

But not work the pasyment process

@przpl
Copy link

przpl commented Oct 11, 2017

How many RAM and zec/zcl/btcz nodes running on your server do you have?

@jcreyesb
Copy link
Author

only one BTCZ node, 512 RAM

@sennevb
Copy link
Collaborator

sennevb commented Oct 11, 2017

512mb is not enough for shielding process

@przpl
Copy link

przpl commented Oct 11, 2017

Yes, safe amount for shielding is 4 GB of RAM or more. Without this payment wont be prcoessed.

@sennevb
Copy link
Collaborator

sennevb commented Oct 11, 2017

You can try by adding swap space

@jcreyesb
Copy link
Author

thanks guys.. i did all your recommendations..my VPS 1G RAM and 4G swap..

pool@btcz-pool:~/z-nomp$ ./zcash-cli z_gettotalbalance
{
"transparent": "0.00",
"private": "12312.4999",
"total": "12312.4999"
}

but.. allways show me.. this

2017-10-11 19:39:41 [Pool] [bitcoinz] (Thread 1) Block notification via RPC polling
2017-10-11 19:39:47 [Payments] [bitcoinz] sendTToZ is waiting, too many z_sendmany operations already in progress.
2017-10-11 19:39:47 [Payments] [bitcoinz] Insufficient funds (0) to process payments (12312.496); possibly waiting for txs.
2017-10-11 19:39:47 [Payments] [bitcoinz] Finished interval - time spent: 119ms total, 19ms redis, 102ms daemon RPC
2017-10-11 19:40:27 [Payments] [bitcoinz] Shielding operation in progress opid-b284ebaf-0914-4a9c-aae1-0993a22c0219
2017-10-11 19:40:36 [Pool] [bitcoinz] (Thread 1) No new blocks for 55 seconds - updating transactions & rebroadcasting work
2017-10-11 19:41:24 [Payments] [bitcoinz] Shielding operation in progress opid-b284ebaf-0914-4a9c-aae1-0993a22c0219
2017-10-11 19:41:31 [Pool] [bitcoinz] (Thread 1) No new blocks for 55 seconds - updating transactions & rebroadcasting work
2017-10-11 19:41:47 [Payments] [bitcoinz] Insufficient funds (0) to process payments (12312.496); possibly waiting for txs.
2017-10-11 19:41:47 [Payments] [bitcoinz] Finished interval - time spent: 174ms total, 106ms redis, 147ms daemon RPC
2017-10-11 19:42:21 [Payments] [bitcoinz] Shielding operation success opid-b284ebaf-0914-4a9c-aae1-0993a22c0219 txid: 36e72f26a9c6b68d31aa5975f11ab25a33b9d56f262ef9343c57a6defcd59a47
2017-10-11 19:42:26 [Pool] [bitcoinz] (Thread 1) No new blocks for 55 seconds - updating transactions & rebroadcasting work
2017-10-11 19:43:21 [Pool] [bitcoinz] (Thread 1) No new blocks for 55 seconds - updating transactions & rebroadcasting work
2017-10-11 19:43:47 [Payments] [bitcoinz] Insufficient funds (0) to process payments (12312.496); possibly waiting for txs.
2017-10-11 19:43:47 [Payments] [bitcoinz] Finished interval - time spent: 20ms total, 12ms redis, 5ms daemon RPC

2017-10-11 20:18:37 [Payments] [bitcoinz] Shielding operation success opid-05a24be1-4af7-48a4-83a8-e71114ee5de1 txid: 0eb48f4b29862fe123e78eedbf32597f76321cc17a4a6241ce6e6324a146b99d
2017-10-11 20:18:37 [Payments] [bitcoinz] Shielding operation failed opid-4c8d2bd9-b111-4389-b315-24fb3f951325 -6, Insufficient funds, no unspent notes found for zaddr from address.
2017-10-11 20:19:31 [Pool] [bitcoinz] (Thread 1) No new blocks for 55 seconds - updating transactions & rebroadcasting work
2017-10-11 20:19:34 [Payments] [bitcoinz] Shielding operation success opid-05a24be1-4af7-48a4-83a8-e71114ee5de1 txid: 0eb48f4b29862fe123e78eedbf32597f76321cc17a4a6241ce6e6324a146b99d
2017-10-11 20:19:34 [Payments] [bitcoinz] Shielding operation failed opid-4c8d2bd9-b111-4389-b315-24fb3f951325 -6, Insufficient funds, no unspent notes found for zaddr from address.
2017-10-11 20:19:41 [Payments] [bitcoinz] Insufficient funds (0) to process payments (12312.496); possibly waiting for txs.
2017-10-11 20:19:41 [Payments] [bitcoinz] Finished interval - time spent: 12ms total, 2ms redis, 4ms daemon RPC
2017-10-11 20:20:26 [Pool] [bitcoinz] (Thread 1) No new blocks for 55 seconds - updating transactions & rebroadcasting work
2017-10-11 20:20:32 [Payments] [bitcoinz] Shielding operation success opid-05a24be1-4af7-48a4-83a8-e71114ee5de1 txid: 0eb48f4b29862fe123e78eedbf32597f76321cc17a4a6241ce6e6324a146b99d

@sennevb
Copy link
Collaborator

sennevb commented Oct 12, 2017

zcash-cli z_getoperationstatus shows what?
Seems like finds stay in z address

@jcreyesb
Copy link
Author

pool@btcz-pool:~/z-nomp$ ./zcash-cli z_getoperationstatus
[
]
today is working!! thanks Guys.. i'll invited the beers!!

@bcmonster
Copy link

I'm having the same error on Komodo. The wallet seems to be just short like the smallest ammout. Im sure it has to be what i am using on txs. Any ideas. I have a found about 75 blocks and it just now started.

Its not a ram issue. I have 16 gigs and another 8 virtual.

2017-10-13 08:30:13 [Payments] [komodo] Insufficient funds (0.20565227) to process payments (0.20565233); possibly waiting for txs.

Any clue what adjustments I need to make?

@jcreyesb
Copy link
Author

i upgraded RAM and created swap in the vps

You can try by adding swap space
Yes, safe amount for shielding is 4 GB of RAM or more. Without this payment wont be prcoessed.

@ridd84
Copy link

ridd84 commented Oct 15, 2017

Hi, I have the same problem, I think that I need to wait confirmations, I post tomorrow again, sorry.

@ridd84
Copy link

ridd84 commented Oct 16, 2017

Hi, now I saw this:

[Payments] [bitcoinz] Insufficient funds (800) to process payments (12374.99999); possibly waiting for txs.

Also I don't understand very well payment process, I have this balance:

root@Pool:~/bitcoinz-pkg# ./zcash-cli z_gettotalbalance
{
  "transparent": "800.00",
  "private": "11574.9991",
  "total": "12374.9991"
}

And, in pool_config/bitcoinz.json I have:

    "address": "t1SM.....B7"  

    "zAddress": "zcZM......pQ" 

    "tAddress": "t1Sk......GL"  

    "rewardRecipients": {
        "t1b4....is": 1.0
    },

If I check transactions, I see:

T(Public) +12375,00 --> MINED --> t1SM.....B7
T(Public) +125,00 --> MINED --> t1b4....is
Z(Private)+12374.9999 --> IN --> zcZM....pQ
T(Public) -12374.9999 --> OUT --> Z Address not listed by wallet
Z(Private)+12274.9998 --> IN --> zcZM....pQ
T(Public) +100,00 --> IN --> t1Sk......GL
Z(Private)+12174.9998 --> IN --> zcZM....pQ
T(Public) +100,00 --> IN --> t1Sk......GL
Z(Private)+10274.9998 --> IN --> zcZM....pQ
T(Public) +100,00 --> IN --> t1Sk......GL

.....

I don't know why payments goes to
(address --> zAddress --> not listed --> tAddress --> ¿Miners?)
It's normal?

I can change paymentProcessor.js to be more faster?

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

Thanks in advance!!

@jcreyesb
Copy link
Author

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

change to

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

@neurans
Copy link

neurans commented Oct 18, 2017

jcreyesb, did this solve your problem?
I am still having it.

@sennevb
Copy link
Collaborator

sennevb commented Oct 21, 2017

this should resolve the problem..

@ridd84
Copy link

ridd84 commented Oct 21, 2017

hi @neurans , @sennevb . I resolved problem, check

  1. memory 4Gb minimum
  2. swap https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04
  3. update z-nomp/libs/paymentProcessor.js
var amount = satoshisToCoins(zBalance - 10000);
// unshield no more than 100 ZEC at a time
if (amount > 100.0)
amount = 100.0;

change to

var amount = satoshisToCoins(zBalance - 10000);
// unshield no more than 100 ZEC at a time
if (amount > 20000.0)
amount = 20000.0;
  1. Charge a minimum of 10 coins in tAddress, during payment transaction I lose 0.0001 or 0.0002 fee, if I need to pay 12000 coins I only have 11999.9998, for this leave a minimum of coins in this tAddress for fee...

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

@lokko82
Copy link

lokko82 commented Nov 11, 2017

I had the same problems
after which I "maxBlocksPerPayment": 3,
set to 1, the matter was done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants