From 199bebc22353e5befbc62f52348aa1e3ed3bfc0a Mon Sep 17 00:00:00 2001 From: alan <652732310@qq.com> Date: Mon, 14 Jul 2025 11:20:34 +0800 Subject: [PATCH] move miner and admin namespace to auth rpc --- eth/backend.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index 80ffd301ce..1a7bb1df58 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -378,14 +378,16 @@ func (s *Ethereum) APIs() []rpc.API { // Append all the local APIs and return return append(apis, []rpc.API{ { - Namespace: "miner", - Service: NewMinerAPI(s), + Namespace: "miner", + Service: NewMinerAPI(s), + Authenticated: true, }, { Namespace: "eth", Service: downloader.NewDownloaderAPI(s.handler.downloader, s.blockchain, s.eventMux), }, { - Namespace: "admin", - Service: NewAdminAPI(s), + Namespace: "admin", + Service: NewAdminAPI(s), + Authenticated: true, }, { Namespace: "debug", Service: NewDebugAPI(s),