aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-02-19 22:25:44 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-02-19 22:25:44 -0500
commit39e18902763a5fd6f355294d8b135c8f5bc2ec99 (patch)
tree01f44207f9e6cda6d9f3433fe43a9c65d4916bc5 /src/daemon/rpc.h
parentMerge pull request #6197 (diff)
parentdaemon: run with -rpc-payment-address and --rpc-restricted-bind-port (diff)
downloadmonero-39e18902763a5fd6f355294d8b135c8f5bc2ec99.tar.xz
Merge pull request #6198
5f2a32c daemon: run with -rpc-payment-address and --rpc-restricted-bind-port (moneromooo-monero)
Diffstat (limited to 'src/daemon/rpc.h')
-rw-r--r--src/daemon/rpc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/rpc.h b/src/daemon/rpc.h
index 213593aa7..6f545a3b7 100644
--- a/src/daemon/rpc.h
+++ b/src/daemon/rpc.h
@@ -56,12 +56,13 @@ public:
, const bool restricted
, const std::string & port
, const std::string & description
+ , bool allow_rpc_payment
)
: m_server{core.get(), p2p.get()}, m_description{description}
{
MGINFO("Initializing " << m_description << " RPC server...");
- if (!m_server.init(vm, restricted, port))
+ if (!m_server.init(vm, restricted, port, allow_rpc_payment))
{
throw std::runtime_error("Failed to initialize " + m_description + " RPC server.");
}