Closed fanmaomao closed 6 years ago
Are your pool wallet and fee wallet in testnet ? Put donations to ZERO (because donation addresses are not testnet addresses).
I have considered your conjecture, the donations addresses are already testnet address.
I think my problem is that the rpc service has a bad response : {"bytesParsed":0,"code":"HPE_INVALID_CONSTANT"}
I search this message, it seems like a network error.
So I recheck my services, I found that I only started the wallet cli service to mine and forget started the wallet rpc service ....... 😓
Then I encountered another problem ...
I use /usr/local/src/monero/monerod --testnet --data-dir ~/xmr_testnet/01/ --p2p-bind-port 28080 --rpc-bind-port 28081 --add-exclusive-node 127.0.0.1:38080 --add-exclusive-node 127.0.0.1:48080
to start the monerod and I use /usr/local/src/monero/monero-wallet-rpc --testnet --daemon-port 28081 --rpc-bind-port 28082 --wallet-file ~/xmr_testnet/wallets/pool_main.keys --password "******"
to start the wallet rpc .
I can't start the wallet rpc service because the port(28082) is already in use.
I use netstat -anp | grep 28082
and get this message:
tcp 0 0 127.0.0.1:28082 0.0.0.0:* LISTEN 20262/monerod
It makes me very 🤔
Not sure if it is the cause In testnet monero mode, uint16_t const ZMQ_RPC_DEFAULT_PORT = 28082; It is used by defaut with monero testnet.
For undefined “fee” property, if you checked everything, restart that module + blockManager will fix it.
I used --zmq-rpc-bind-port 28082
at first time, monerod also use 28082 port, I think this is a wrong usage, so I removed it
The property fee
is undefined because body
is {"bytesParsed":0,"code":"HPE_INVALID_CONSTANT"}
on line 304 in /lib/payment_systems/xmr.js
and because my monero-wallet-rpc
is not running.
I checked the v0.11.1.0 monerod, It didn't have --zmq-rpc-bind-port
config, it didn't listen 28082.
I gave up running the monero-wallet-rpc service on port 28082, it is running on port 28083, it work well.
After solving the rpc problem, I encountered a new trouble. 😫😫😫
new trouble: https://www.reddit.com/r/Monero/comments/8eq6mt/why_cant_i_put_a_large_amount_of_monero_to_an/
how did you fix the rpc issue? i am seeing the same thing
@alexmateescu I have no idea to fix this, I try to use the public testnet and tagenet, transfer works well.
I built a private
testnet
on my computer, it has three nodes, one of them provides service to the mine pool, then I set up two miners to connect to the pool, every service works well, but after a long time the mine pool did not pay to the miners, thepayments
service log is:then I use
DEBUG=* pm2 start init.js --name=payments --log-date-format="YYYY-MM-DD HH:mm Z" -- --module=payments
to restart the service, but the service automatically restarts again and again, the error log is:These addresses are testnet address, and my
monerod
andmonero-wallet-cli
works well, and all nodes and miners are mining, but i usepostman
post a request to127.0.0.1:28082/json_rpc
cannot connection, I don't know where my problem is, hope to get your help, thanks!