diff options
Diffstat (limited to 'src/rpc/daemon_handler.cpp')
| -rw-r--r-- | src/rpc/daemon_handler.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp index 671889ddd..79479627c 100644 --- a/src/rpc/daemon_handler.cpp +++ b/src/rpc/daemon_handler.cpp @@ -870,6 +870,13 @@ namespace rpc { try { + if (m_restricted && req.amounts != std::vector<uint64_t>(1, 0)) + { + res.distributions.clear(); + res.status = Message::STATUS_FAILED; + res.error_details = "Restricted RPC can only get output distribution for rct outputs. Use your own node."; + return; + } res.distributions.reserve(req.amounts.size()); const uint64_t req_to_height = req.to_height ? req.to_height : (m_core.get_current_blockchain_height() - 1); |
