The ship will scan for wormholes. You'll receive the scanner report sub space messages next turn.

You do not need fuel to scan for wormholes. With ExtendedSensorSweep enabled, Sensor Sweep will also find wormholes, so you do not need this friendly code.

Relevant Configuration Option: WrmScanRange

Relevant PControl Stage: WormholeScan

Relevant Formulas: Scanning for Wormholes.