Don't spend CPU condition

Custom eosio assertion message

By throwing an error containing what's outline below will result in the DSP gracefully failing the transaction without spending CPU and rescheduling the transaction. So for example if you have a price feed and you only want to update it when the price has moved by more than 1%, then you can throw that error until that condition is met. This prevents the DSP from using CPU to schedule the next cron.

eosio::check(false, "{abort_service_request}");

Last updated