Skip to main content
3 events
when toggle format what by license comment
Aug 13, 2021 at 21:10 comment added Mitchell Turner I'm beginning to suspect that if a script validator or policy runs, you pay a fee. A non-compliant tx will cause it to fail, but you still pay for the effort. I assume things that are on the tx context, e.g. input TxOs and valid time range, can be checked without running a script validator and thus are "free" to invalidate. I don't know how builtin extrinsics like transfers and staking fit in though. Those cost fees.
Aug 13, 2021 at 20:03 comment added Piotr Gorzelany Thanks that makes sense. I think that in the case were we want to spend a UTxO that was already spent the validator node will not run the contract script but will reject the transaction right away without any heavy computation. And you are right that usually a transaction is validated off-chain if the user is not malicious. What if somebody would construct invalid transactions on purpose and make the validator node run a complex script that would consume much resources and fail in the end?
Aug 13, 2021 at 17:44 history answered Mitchell Turner CC BY-SA 4.0