How does the fee structure protect against things like fork bombs?

Hi, hope this is the correct category.

What prevents an attacker or careless user to submit a smart contract that is very expensive to evaluate?

Thanks.

Hehey

If i understand it right, that’s not possible. A smart contract sitting on the blockchain, not on a PC/Server. The Blockchain can’t do start processes. Thats the problem with gambling e.c. You need a piece of software for the entropy on a Machine ( oracle e.c. ).

But please correct me, if i’m wrong.

Greetings

The smart contract will have to be computed by the pools in order to determine if a withdrawal from the UTXO owned by the smart contract is allowed. If this computation is extremely costly that needs to be reflected in the fee structure. Otherwise an attacker could just hijack the pool’s computing power.