mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 11:41:51 +00:00
impl Resource Unavailable RPC error (#2072)
## Issue Addressed Related to #1891, The error is not in the spec yet (see ethereum/eth2.0-specs#2131) ## Proposed Changes Implement the proposed error, banning peers that send it ## Additional Info NA
This commit is contained in:
@@ -577,6 +577,7 @@ impl RPCError {
|
||||
RPCResponseErrorCode::RateLimited => "rate_limited",
|
||||
RPCResponseErrorCode::InvalidRequest => "invalid_request",
|
||||
RPCResponseErrorCode::ServerError => "server_error",
|
||||
RPCResponseErrorCode::ResourceUnavailable => "resource_unavailable",
|
||||
RPCResponseErrorCode::Unknown => "unknown_response_code",
|
||||
},
|
||||
RPCError::StreamTimeout => "stream_timeout",
|
||||
|
||||
Reference in New Issue
Block a user