Skip to content

Comments

Handle client.show_message stratum message#1565

Open
mutatrum wants to merge 1 commit intobitaxeorg:masterfrom
mutatrum:handle-client-show-message
Open

Handle client.show_message stratum message#1565
mutatrum wants to merge 1 commit intobitaxeorg:masterfrom
mutatrum:handle-client-show-message

Conversation

@mutatrum
Copy link
Collaborator

From the logs of #1558

@github-actions
Copy link

Test Results

42 tests  ±0   42 ✅ ±0   0s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 4e12e21. ± Comparison against base commit 18a5619.

Copy link
Contributor

@0xf0xx0 0xf0xx0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than this nit, acked

will test in a bit

cJSON * params = cJSON_GetObjectItem(json, "params");
if (params && cJSON_IsArray(params) && cJSON_GetArraySize(params) > 0) {
cJSON * msg_item = cJSON_GetArrayItem(params, 0);
if (msg_item && cJSON_IsString(msg_item)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: capping the pool message length to 256 should be done, just printing whatever comes from the pool feels iffy to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants