I need to create a smart contract for which it would be hard to estimate gas usage.
Specifically, if I estimate execution gas usage at 90 000 gas, I want to consume e.g. 110 000 gas, so that the transaction will fail if I execute it with a 100 000 gas limit.
Any ideas how I could proceed?
EDIT: The solution should expose only receive and fallback external functions. Such a smart contract is useful for testing execution paths of critical systems.