mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 12:11:59 +00:00
handle parent blob request edge cases correctly. fix data availability boundary check
This commit is contained in:
@@ -473,6 +473,11 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
|
||||
RPCError::ErrorResponse(code, _) => match code {
|
||||
RPCResponseErrorCode::Unknown => PeerAction::HighToleranceError,
|
||||
RPCResponseErrorCode::ResourceUnavailable => {
|
||||
// Don't ban on this because we want to retry with a block by root request.
|
||||
if matches!(protocol, Protocol::BlobsByRoot) {
|
||||
return;
|
||||
}
|
||||
|
||||
// NOTE: This error only makes sense for the `BlocksByRange` and `BlocksByRoot`
|
||||
// protocols.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user