mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-28 02:31:56 +01:00
38 lines
567 B
C
38 lines
567 B
C
#ifndef GLOBAL_STATE_H_
|
|
#define GLOBAL_STATE_H_
|
|
|
|
#include "work_queue.h"
|
|
#include "bm1397.h"
|
|
#include "system.h"
|
|
#include "stratum_api.h"
|
|
|
|
|
|
|
|
#define STRATUM_USER CONFIG_STRATUM_USER
|
|
|
|
|
|
typedef struct {
|
|
work_queue stratum_queue;
|
|
work_queue ASIC_jobs_queue;
|
|
|
|
bm1397Module BM1397_MODULE;
|
|
SystemModule SYSTEM_MODULE;
|
|
|
|
|
|
char * extranonce_str;
|
|
int extranonce_2_len;
|
|
int abandon_work;
|
|
|
|
uint8_t * valid_jobs;
|
|
pthread_mutex_t valid_jobs_lock;
|
|
|
|
uint32_t stratum_difficulty;
|
|
|
|
int sock;
|
|
|
|
} GlobalState;
|
|
|
|
|
|
|
|
|
|
#endif /* GLOBAL_STATE_H_ */ |