-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc_payments fails to start if running a regular RPC and restricted RPC on separate ports. #7359
Comments
That's because the rpc_payments command is run on the default RPC port, which is not the one the RPC payment system is running. When using a restricted port and a non restricted port, there are two RPC servers running (unfortunately). This needs changing to have a single server listening on two ports (and restricting on one). |
hmm.. with the current setup, do you think it would work if the restricted rpc ran on the default port and I moved the non-restricted port? |
If you run rpc_payments as "monerod rpc_payments", then it should, as should "monerod --rpc-bind-port PORT rpc_payments". If running from the monerod console, I'm not quite sure. |
hmm.. I'll give it a shot later tonight to see if I can have the restricted and non-restricted running with payments with the ports swapped... that's the one thing I didn't try. I'll update the ticket with the results if it works or not. |
yeah, swapping the ports doesn't help. It just doesn't know what to do with the two rpc servers running. |
So... how are people using the So you'll have to use an unrestricted port as well, but now the This basically means you have to choose between managing your server via RPC or running a public node? What am I missing here? (Sending a JSON request for |
@reijerh see #8724 (probably going to be removed: recent investigations showed that 'not many' nodes have it enabled. if use was widespread, 'evil' people would simply host free high quality nodes) however, there are use cases (which i personally like), such as https://repo.getmonero.org/selene/primo (it just never became popular) |
Alright, thanks for the heads-up, and my sincere condolences to the original implementer. 🙃 |
I've spent a while playing the "what's different" game and narrowed it down to the following two scenarios.
If you start a server with no port assignments and
--restricted-rpc
(along with rpc payment flags), therpc_payments
command shows stats and all is well.However, if you start it with
--rpc-bind-port 18081 --rpc-restricted-bind-port 18089
and omit--restricted-rpc
, therpc_payments
command yieldsError: Unsuccessful -- Payments not enabled
It seems that
rpc_payments
needs a restricted server running for it to work, but doesn't know what to do when there is both a restricted and non-restricted server running out of the same daemon."Why would you run it that way?" you ask... Well, I can expose a restricted server to 18089 and hopefully get that sweet sweet rpc_payments money once that starts working, and keep a regular rpc running at 18081 so local network wallets can use it w/o having to pay (and allow me to pull stats off the rpc server.
The text was updated successfully, but these errors were encountered: