@@ -279,7 +279,7 @@ proc downloadInternal(
279279 if not self.pendingBlocks.isRequested (address):
280280 let peer = self.selectPeer (peers.with)
281281 self.pendingBlocks.markRequested (address, peer.id)
282- peer.blockRequested (address)
282+ peer.blockRequestScheduled (address)
283283 trace " Request block from block retry loop"
284284 await self.sendWantBlock (@ [address], peer)
285285 peer
@@ -412,7 +412,7 @@ proc blockPresenceHandler*(
412412 for address in ourWantCids:
413413 self.pendingBlocks.decRetries (address)
414414 self.pendingBlocks.markRequested (address, peer)
415- peerCtx.blockRequested (address)
415+ peerCtx.blockRequestScheduled (address)
416416
417417 if ourWantCids.len > 0 :
418418 trace " Peer has blocks in our wantList" , peer, wants = ourWantCids
@@ -773,6 +773,8 @@ proc taskHandler*(
773773 wantedBlocks = peerCtx.wantedBlocks.filterIt (not peerCtx.isBlockSent (it))
774774 sent: HashSet [BlockAddress ]
775775
776+ trace " Running task for peer" , peer = peerCtx.id
777+
776778 for wantedBlock in wantedBlocks:
777779 peerCtx.markBlockAsSent (wantedBlock)
778780
0 commit comments