all: remove public field from rpc.API (#25059)

all: remove public field from rpc.API
This commit is contained in:
lightclient
2022-06-27 13:33:13 +03:00
committed by GitHub
parent c7f485d9e5
commit 119f955686
14 changed files with 6 additions and 39 deletions
-1
View File
@@ -699,7 +699,6 @@ func (c *Clique) APIs(chain consensus.ChainHeaderReader) []rpc.API {
Namespace: "clique",
Version: "1.0",
Service: &API{chain: chain, clique: c},
Public: false,
}}
}
-2
View File
@@ -680,13 +680,11 @@ func (ethash *Ethash) APIs(chain consensus.ChainHeaderReader) []rpc.API {
Namespace: "eth",
Version: "1.0",
Service: &API{ethash},
Public: true,
},
{
Namespace: "ethash",
Version: "1.0",
Service: &API{ethash},
Public: true,
},
}
}