Merge pull request #1305 from lbryio/fix_score_call

fix where it called the wrong score method
This commit is contained in:
Jack Robison 2018-07-17 17:02:35 -04:00 committed by GitHub
commit 75829812f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -356,7 +356,7 @@ class AvailabilityRequest(RequestHelper):
blob_hashes = response_dict['available_blobs'] blob_hashes = response_dict['available_blobs']
if not blob_hashes: if not blob_hashes:
# should not send any more requests as it doesnt have any blob we need # should not send any more requests as it doesnt have any blob we need
self.peer.update_score(-10.0) self.update_local_score(-10.0)
return True return True
for blob_hash in blob_hashes: for blob_hash in blob_hashes:
if blob_hash in request.request_dict['requested_blobs']: if blob_hash in request.request_dict['requested_blobs']: