nxducominer
A multithreaded DUCO miner for the Nintendo Switch
 
Loading...
Searching...
No Matches
Data Structures

Data Structures

struct  MiningResults
 aggregated mining results of all threads More...
 
struct  ThreadData
 thread-specific mining data and state More...
 
struct  WebDashboard
 web dashboard server information More...
 
struct  ResourceManager
 resource manager for system-wide state More...
 
struct  MiningConfig
 mining configuration from config file More...
 
struct  MemoryStruct
 memory buffer for CURL operation More...
 

Variables

MiningResults mr
 
WebDashboard web
 
ResourceManager res
 
MiningConfig mc
 

Detailed Description

Variable Documentation

◆ mc

Initial value:
= {
.node = NULL,
.name = NULL,
.wallet_address = NULL,
.miner_key = NULL,
.difficulty = NULL,
.rig_id = NULL,
.port = 0,
.cpu_boost = false,
.iot = false,
.threads = 1,
.web_dashboard = false
}

Definition at line 137 of file main.c.

◆ mr

Initial value:
= {
.total_hashrate = 0.0f,
.total_difficulty = 0,
.avg_difficulty = 0.0f,
.total_shares = 0,
.good_shares = 0,
.bad_shares = 0,
.blocks = 0
}

Definition at line 51 of file main.c.

◆ res

Initial value:
= {
.last_share = 0,
.charge = 0,
.chargeType = 0,
.skin_temp_milli_c = 0,
.lock = PTHREAD_MUTEX_INITIALIZER,
.mining_threads = NULL,
.thread_data = NULL,
.single_miner_id = 0,
.web_dashboard = &web
}
WebDashboard web
Definition main.c:87

Definition at line 108 of file main.c.

◆ web

Initial value:
= {
.server_fd = -1,
.client_fd = -1,
.wd_thread = NULL
}

Definition at line 87 of file main.c.