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. 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.
1
eosio::check(false, "{abort_service_request}");
Copied!
Last modified 7mo ago
Copy link