mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
More user-friendly warning about non-existing module of rpc #4568
This commit is contained in:
parent
aa7985341e
commit
6878ddb76f
@ -465,7 +465,7 @@ func newGzipHandler(next http.Handler) http.Handler {
|
||||
// and then registers all of the APIs exposed by the services.
|
||||
func RegisterApisFromWhitelist(apis []rpc.API, modules []string, srv *rpc.Server, exposeAll bool) error {
|
||||
if bad, available := checkModuleAvailability(modules, apis); len(bad) > 0 {
|
||||
log.Error("Unavailable modules in HTTP API list", "unavailable", bad, "available", available)
|
||||
log.Error("Non-existing modules in HTTP API list, please remove it", "non-existing", bad, "existing", available)
|
||||
}
|
||||
// Generate the whitelist based on the allowed modules
|
||||
whitelist := make(map[string]bool)
|
||||
|
Loading…
Reference in New Issue
Block a user