summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <[email protected]>2024-11-04 03:50:11 +0000
committerroot <[email protected]>2024-11-04 03:50:11 +0000
commitde8495d25ea68f1103889ae3ad86d819bf6cfebc (patch)
treebb7adfd77734c80f9f2e8d74b69fd6c1b41c4cb7
parent2a31b2409d1adb1c1bb4c4e8a32ab4fe39d1477f (diff)
adapt API rename
-rw-r--r--test/decoders/stratum/gtest_stratum_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/decoders/stratum/gtest_stratum_module.c b/test/decoders/stratum/gtest_stratum_module.c
index 579be21..0ce6b8a 100644
--- a/test/decoders/stratum/gtest_stratum_module.c
+++ b/test/decoders/stratum/gtest_stratum_module.c
@@ -44,7 +44,7 @@ void test_stratum_decoder_on_message(int topic_id, void *msg, void *on_msg_arg)
cJSON *stratum_json = cJSON_CreateObject();
cJSON_AddItemToObject(g_result_json, "stratum", stratum_json);
- cJSON_AddStringToObject(stratum_json, "Tuple4", session_get0_readable_addr(stratum->session));
+ cJSON_AddStringToObject(stratum_json, "Tuple4", session_get_readable_addr(stratum->session));
cJSON_AddStringToObject(stratum_json, "type", stratum->type == ETH ? "ETH" : "OTHER");
cJSON_AddStringToObject(stratum_json, "mining_pools", (char *)stratum->mining_pools.iov_base);
cJSON_AddStringToObject(stratum_json, "mining_program", (char *)stratum->mining_program.iov_base);