|
|
@ -2897,7 +2897,7 @@ static void parse_method(sdata_t *sdata, const int64_t client_id, json_t *id_val |
|
|
|
/* Shouldn't happen, sanity check */ |
|
|
|
/* Shouldn't happen, sanity check */ |
|
|
|
if (unlikely(!result_val)) { |
|
|
|
if (unlikely(!result_val)) { |
|
|
|
LOGWARNING("parse_subscribe returned NULL result_val"); |
|
|
|
LOGWARNING("parse_subscribe returned NULL result_val"); |
|
|
|
return; |
|
|
|
goto out; |
|
|
|
} |
|
|
|
} |
|
|
|
val = json_object(); |
|
|
|
val = json_object(); |
|
|
|
json_object_set_new_nocheck(val, "result", result_val); |
|
|
|
json_object_set_new_nocheck(val, "result", result_val); |
|
|
@ -2952,7 +2952,7 @@ static void parse_method(sdata_t *sdata, const int64_t client_id, json_t *id_val |
|
|
|
|
|
|
|
|
|
|
|
if (cmdmatch(method, "mining.suggest")) { |
|
|
|
if (cmdmatch(method, "mining.suggest")) { |
|
|
|
suggest_diff(client, method, params_val); |
|
|
|
suggest_diff(client, method, params_val); |
|
|
|
return; |
|
|
|
goto out; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Covers both get_transactions and get_txnhashes */ |
|
|
|
/* Covers both get_transactions and get_txnhashes */ |
|
|
|