Iran has legalised mining when crypto market is contracting and BTC/LTC block halving is coming up......a bit late to the party? Time to do this would have been in 2013-2014 when mining farms were springing up all over the world (mostly in china though...) .
Maybe it's a bit too late because the other country was already getting so many btc and altcoin from mining. But that will not be a problem because they can start mining from now on and collect the rewards and hold for the right time to sell their bitcoin and altcoin. I think they can compete with China if they have a low fee of electricity so they can save the rewards.