mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-10 04:49:16 +02:00
Changed order of stratum messages for #80
This commit is contained in:
parent
45102fd8cb
commit
174ef21b18
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@ -18,8 +18,10 @@
|
||||
"string_view": "c",
|
||||
"*.tcc": "c"
|
||||
},
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnSave": false,
|
||||
"cSpell.words": [
|
||||
"ssid"
|
||||
]
|
||||
],
|
||||
"idf.port": "/dev/cu.usbmodem1434301",
|
||||
"C_Cpp.intelliSenseEngine": "Tag Parser"
|
||||
}
|
@ -99,12 +99,14 @@ void stratum_task(void * pvParameters)
|
||||
continue;
|
||||
}
|
||||
|
||||
//mining.subscribe
|
||||
STRATUM_V1_subscribe(GLOBAL_STATE->sock, &GLOBAL_STATE->extranonce_str, &GLOBAL_STATE->extranonce_2_len, GLOBAL_STATE->asic_model);
|
||||
|
||||
//mining.configure
|
||||
STRATUM_V1_configure_version_rolling(GLOBAL_STATE->sock, &GLOBAL_STATE->version_mask);
|
||||
|
||||
STRATUM_V1_subscribe(GLOBAL_STATE->sock, &GLOBAL_STATE->extranonce_str, &GLOBAL_STATE->extranonce_2_len,
|
||||
GLOBAL_STATE->asic_model);
|
||||
|
||||
// This should come before the final step of authenticate so the first job is sent with the proper difficulty set
|
||||
//mining.suggest_difficulty
|
||||
STRATUM_V1_suggest_difficulty(GLOBAL_STATE->sock, STRATUM_DIFFICULTY);
|
||||
|
||||
char * username = nvs_config_get_string(NVS_CONFIG_STRATUM_USER, STRATUM_USER);
|
||||
|
Loading…
x
Reference in New Issue
Block a user