|
|
|
@ -124,6 +124,25 @@ public:
|
|
|
|
|
core.get().set_txpool_listener(cryptonote::listener::zmq_pub::txpool_add{shared});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else // if --no-zmq specified
|
|
|
|
|
{
|
|
|
|
|
// Assert that none of --zmq-rpc-bind-port, --zmq-rpc-bind-ip, and --zmq-pub are specified b/c
|
|
|
|
|
// that does not make semantic sense with --no-zmq.
|
|
|
|
|
if (command_line::get_arg(vm, daemon_args::arg_zmq_rpc_bind_port) !=
|
|
|
|
|
daemon_args::arg_zmq_rpc_bind_port.default_value)
|
|
|
|
|
{
|
|
|
|
|
MWARNING("WARN: --zmq-rpc-bind-port has no effect because --no-zmq was specified");
|
|
|
|
|
}
|
|
|
|
|
else if (command_line::get_arg(vm, daemon_args::arg_zmq_rpc_bind_ip) !=
|
|
|
|
|
daemon_args::arg_zmq_rpc_bind_ip.default_value)
|
|
|
|
|
{
|
|
|
|
|
MWARNING("WARN: --zmq-rpc-bind-ip has no effect because --no-zmq was specified");
|
|
|
|
|
}
|
|
|
|
|
else if (!command_line::get_arg(vm, daemon_args::arg_zmq_pub).empty())
|
|
|
|
|
{
|
|
|
|
|
MWARNING("WARN: --zmq-pub has no effect because --no-zmq was specified");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|