fix where it called the wrong score method

This commit is contained in:
Victor Shyba 2018-07-17 17:47:32 -03:00
parent 7d7dd665aa
commit 4d720370b1

View file

@ -356,7 +356,7 @@ class AvailabilityRequest(RequestHelper):
blob_hashes = response_dict['available_blobs']
if not blob_hashes:
# 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
for blob_hash in blob_hashes:
if blob_hash in request.request_dict['requested_blobs']: