Thanks alot. However I got mi recovery rom after I flashed it back stock rom
All I have to do now is relock the bootloader and regain the warranty right?
Do I still have to wait 60 hours if I unlock bootloader again after relock?
You got it with stock rom because you have not flashed disable encryption ZIP.
MIUI reverts to stock recovery automaticaly with encryption.
That's our goal, to keep it stock.
Relocking bootloader is necessary and even not right if you have your device rooted. You should keep it unlocked due to root access.
I don't think that you need to relock it to regain the warranty, because unlocking your xiaomi device etc. is not voiding it.
I am not sure about unlocking cooldown, but I know it appears when you want to unlock a device with a new miui account connected short time before it.
Maybe you don't need to wait again.