code: func (sm *SyncManager) clearRequestedState(state *peerSyncState) {
  	// Remove requested transactions from the global map so that they will
  	// be fetched from elsewhere next time we get an inv.
  	for txHash := range state.requestedTxns {
  		delete(sm.requestedTxns, txHash)
  	}
  
  	// Remove requested blocks from the global map so that they will be
  	// fetched from elsewhere next time we get an inv.
  	// TODO: we could possibly here check which peers have these blocks
  	// and request them now to speed things up a little.
  	for blockHash := range state.requestedBlocks {
  		delete(sm.requestedBlocks, blockHash)
  	}
  }
docs: // clearRequestedState wipes all expected transactions and blocks from the sync
  // manager's requested maps that were requested under a peer's sync state, This
  // allows them to be rerequested by a subsequent sync peer.