The strait was open with no tolls before the Israel/US attacks. Everyone with a brain and a modicum of imagination (except Trump, apparently) knew for decades that Iran had the latent capability to close the strait, and hence preferred either a diplomatic resolutions or a defacto detente.
Sources please. The war initiated by US and Israel motivated Iran put pressure on the US by closing the strait and attacking the regional US allies.