swarm/network/stream: remove 'stream' cap check from RequestFromPeers

This commit is contained in:
Janos Guljas 2019-01-29 15:35:00 +01:00
parent efb239f29a
commit bb518e0255

View file

@ -259,13 +259,6 @@ func (d *Delivery) RequestFromPeers(ctx context.Context, req *network.Request) (
if sp == nil { if sp == nil {
return true return true
} }
// nodes that do not provide stream protocol
// should not be requested, e.g. bootnodes
if !p.HasCap("stream") {
// TODO: if we have no errors, delete this if
log.Error("Delivery.RequestFromPeers: peer doesn't have stream cap. we should have returned at sp == nil")
return true
}
spID = &id spID = &id
return false return false
}) })