Snipa22 / nodejs-pool

Other
479 stars 422 forks source link

Questions About Monero Instances #298

Open TimeTravelersHackedMe opened 6 years ago

TimeTravelersHackedMe commented 6 years ago

I see in the base.sql file you have these lines:

INSERT INTO pool.config (module, item, item_value, item_type, Item_desc) VALUES ('daemon', 'address', '127.0.0.1', 'string', 'Monero Daemon RPC IP');
INSERT INTO pool.config (module, item, item_value, item_type, Item_desc) VALUES ('daemon', 'port', '18081', 'int', 'Monero Daemon RPC Port');
INSERT INTO pool.config (module, item, item_value, item_type, Item_desc) VALUES ('wallet', 'address', '127.0.0.1', 'string', 'Monero Daemon RPC Wallet IP');
INSERT INTO pool.config (module, item, item_value, item_type, Item_desc) VALUES ('wallet', 'port', '18082', 'int', 'Monero Daemon RPC Wallet Port');

However, in the instructions we only run the daemon. Why are there values for a wallet API in there too? Are we supposed to run the wallet in the background as well?

bobbieltd commented 6 years ago

Yes, you have to run wallet RPC by PM2 ( see Wallet Setup in Readme ) or on another screen .

TimeTravelersHackedMe commented 6 years ago

Yeah but in the config it says there is a Monero Daemon RPC and a Monero Daemon RPC Wallet. Why are we only running the daemon?

Snipa22 commented 6 years ago

Please read the entire readme: https://github.com/Snipa22/nodejs-pool#wallet-setup

Wallets are different because they need passwords and management tools outside of running as a system service.

TimeTravelersHackedMe commented 6 years ago

Thank you... I'm learning. I had problems with the RPC Wallet because the security settings are tight and they don't allow you to bind to other IP addresses besides localhost (at least I couldn't figure it out). I discussed how to use nginx as a proxy pass from a docker container for accessing the wallet RPC here:

https://github.com/Snipa22/nodejs-pool/issues/296