Pre geturi hook
// define custom filter
#undef ORACLE_HOOK_FILTER
#define ORACLE_HOOK_FILTER(uri, data) filter_result(uri, data);
void filter_result(std::vector<char> uri, std::vector<char> data){
// if assertion thrown here, DSP will not respond nor use CPU to process the geturi action
// shouldAbort is included here to prevent the DSP from retrying the oracle request
eosio::check(data.size() > 3, "shouldAbort, result too small");
}Last updated
Was this helpful?