algo-gate-api.c
// override std defaults with jr2 defaults
override std defaults with jr2 defaults
override std defaults with jr2 defaults
bool register_json_rpc2( algo_gate_t *gate )
{
  gate->wait_for_diff           = (void*)&do_nothing;
  gate->get_new_work            = (void*)&jr2_get_new_work;
  gate->get_nonceptr            = (void*)&jr2_get_nonceptr;
  gate->stratum_gen_work        = (void*)&jr2_stratum_gen_work;
  gate->build_stratum_request   = (void*)&jr2_build_stratum_request;
  gate->submit_getwork_result   = (void*)&jr2_submit_getwork_result;
  gate->longpoll_rpc_call       = (void*)&jr2_longpoll_rpc_call;
  gate->work_decode             = (void*)&jr2_work_decode;
  gate->stratum_handle_response = (void*)&jr2_stratum_handle_response;
  gate->nonce_index             = JR2_NONCE_INDEX;
  jsonrpc_2 = true;   
  opt_extranonce = false;
  return true;
 }
bool register_json_rpc2 ( algo_gate_t * gate ) { gate -> wait_for_diff = ( void * ) & do_nothing ; gate -> get_new_work = ( void * ) & jr2_get_new_work ; gate -> get_nonceptr = ( void * ) & jr2_get_nonceptr ; gate -> stratum_gen_work = ( void * ) & jr2_stratum_gen_work ; gate -> build_stratum_request = ( void * ) & jr2_build_stratum_request ; gate -> submit_getwork_result = ( void * ) & jr2_submit_getwork_result ; gate -> longpoll_rpc_call = ( void * ) & jr2_longpoll_rpc_call ; gate -> work_decode = ( void * ) & jr2_work_decode ; gate -> stratum_handle_response = ( void * ) & jr2_stratum_handle_response ; gate -> nonce_index = JR2_NONCE_INDEX ; jsonrpc_2 = true ; opt_extranonce = false ; return true ; }
override std defaults with jr2 defaults
override std defaults with jr2 defaults
// still needed //  have_gbt = false;