This commit is contained in:
Peter Šurda 2018-02-01 12:26:54 +01:00
parent 8d05742436
commit c5dc7fc903
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -55,7 +55,7 @@ class DownloadThread(threading.Thread, StoppableThread):
payload.extend(addresses.encodeVarint(len(request))) payload.extend(addresses.encodeVarint(len(request)))
for chunk in request: for chunk in request:
payload.extend(chunk) payload.extend(chunk)
missingObjects[k] = now missingObjects[chunk] = now
i.append_write_buf(protocol.CreatePacket('getdata', payload)) i.append_write_buf(protocol.CreatePacket('getdata', payload))
logger.debug("%s:%i Requesting %i objects", i.destination.host, i.destination.port, len(request)) logger.debug("%s:%i Requesting %i objects", i.destination.host, i.destination.port, len(request))
requested += len(request) requested += len(request)