mirror of
https://github.com/wownero/wownero.git
synced 2026-11-21 08:04:21 +01:00
rpc: remove pay-to-use RPC on node side
Co-authored-by: tobtoht <tob@featherwallet.org> Co-authored-by: SNeedlewoods <sneedlewoods_1@protonmail.com>
This commit is contained in:
co-authored by
tobtoht
SNeedlewoods
parent
5e44d79824
commit
9b337ca01f
@@ -124,12 +124,12 @@ public:
|
||||
const auto main_rpc_port = command_line::get_arg(vm, cryptonote::core_rpc_server::arg_rpc_bind_port);
|
||||
const auto restricted_rpc_port_arg = cryptonote::core_rpc_server::arg_rpc_restricted_bind_port;
|
||||
const bool has_restricted_rpc_port_arg = !command_line::is_arg_defaulted(vm, restricted_rpc_port_arg);
|
||||
rpcs.emplace_back(new t_rpc{vm, core, p2p, restricted, main_rpc_port, "core", !has_restricted_rpc_port_arg});
|
||||
rpcs.emplace_back(new t_rpc{vm, core, p2p, restricted, main_rpc_port, "core"});
|
||||
|
||||
if(has_restricted_rpc_port_arg)
|
||||
{
|
||||
auto restricted_rpc_port = command_line::get_arg(vm, restricted_rpc_port_arg);
|
||||
rpcs.emplace_back(new t_rpc{vm, core, p2p, true, restricted_rpc_port, "restricted", true});
|
||||
rpcs.emplace_back(new t_rpc{vm, core, p2p, true, restricted_rpc_port, "restricted"});
|
||||
}
|
||||
|
||||
if (!command_line::get_arg(vm, daemon_args::arg_zmq_rpc_disabled))
|
||||
|
||||
Reference in New Issue
Block a user