Cardano n00b here. I'm currently working through the oracle example from the Plutus Pioneer Program.
In the section on updating the oracle, there is a function findOracle
that loops through all UTXOs sent to the oracle's address, and looks for one that has the NFT we are interested in.
https://plutus-pioneer-program.readthedocs.io/en/latest/pioneer/week6.html#updating-the-oracle
Couldn't an attacker create a million UTXOs at that same address, thereby causing our code here to take too long?
Thanks in advance.