rpc: restrict get_public_nodes to public zone peers

(cherry picked from commit 6c5a4c18e3e8cbe088ccaccb0104daf8e4f9afbf)
This commit is contained in:
jpk68
2026-10-04 18:50:24 -04:00
committed by such-gitea
parent baf9c8ea5c
commit 7f028f56cd
+1
View File
@@ -1574,6 +1574,7 @@ namespace cryptonote
COMMAND_RPC_GET_PEER_LIST::request peer_list_req;
COMMAND_RPC_GET_PEER_LIST::response peer_list_res;
peer_list_req.public_only = true;
peer_list_req.include_blocked = req.include_blocked;
const bool success = on_get_peer_list(peer_list_req, peer_list_res, ctx);
res.status = peer_list_res.status;