move miner and admin namespace to auth rpc

This commit is contained in:
alan 2025-07-14 11:20:34 +08:00
parent b992b105ef
commit 199bebc223

View file

@ -380,12 +380,14 @@ func (s *Ethereum) APIs() []rpc.API {
{
Namespace: "miner",
Service: NewMinerAPI(s),
Authenticated: true,
}, {
Namespace: "eth",
Service: downloader.NewDownloaderAPI(s.handler.downloader, s.blockchain, s.eventMux),
}, {
Namespace: "admin",
Service: NewAdminAPI(s),
Authenticated: true,
}, {
Namespace: "debug",
Service: NewDebugAPI(s),