Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Egano (EGN) Egalitarian & Anonymous single unit crypto based on CryptoNote
by
egano
on 13/01/2018, 12:53:41 UTC
@egano

Hey, I've set up a pool but I can't get the payouts working properly because of the decimals. I had a look at CryptonoteConfig.h but still no luck. Other than that the pool works. What did I do wrong?

Code:
2018-01-12 19:40:07 [payments] Error with transfer RPC request to wallet daemon {"code":-4,"message":"Wrong amount"}
2018-01-12 19:40:07 [payments] Payments failed to send to {"amount":106952000000000,"address":"abcd1w....

Code:
[wallet abcd1w]: pool wallet
Unknown command: pool
[wallet abcd1w]: balance
available balance: 0.000097150672525004, locked amount: 0.000005664308578258

config:
Code:
"coinUnits": 1000000000000000000 // Minimum units in a single coin, see COIN constant in DAEMON_CODE/src/cryptonote_config.h - No coin constant
"transferFee": 50000000,
"minPayment": 1000000000,
"maxTransactionAmount": 500000000000000,
"denomination": 1000000000 //truncate to this precision and store remainder

Solving the same challenge in order to make our pool working correctly.
Try sending manually the amount shifted by 18 decimal places to the wallet daemon to see what you receive. After that values in config can be changed accordingly.
Independently we test our pool and once working as expected it will be released here including config.
During testing the Wrong anount error always meant insufficient balance older than 60 blocks.