File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub struct TapeConfig {
16
16
17
17
#[ derive( Debug , Serialize , Deserialize , Clone ) ]
18
18
pub struct MiningConfig {
19
+ pub miner_name : String ,
19
20
pub num_cores : usize ,
20
21
pub max_memory_mb : u64 ,
21
22
pub max_poa_threads : u64 ,
@@ -209,6 +210,7 @@ impl Default for TapeConfig {
209
210
fn default ( ) -> Self {
210
211
Self {
211
212
mining : MiningConfig {
213
+ miner_name : "tape_miner" . to_string ( ) ,
212
214
num_cores : num_cpus:: get ( ) ,
213
215
max_memory_mb : 16384 ,
214
216
max_poa_threads : 4 ,
@@ -248,18 +250,7 @@ mod tests {
248
250
fn test_toml_parsing_works_properly ( ) {
249
251
let toml_content = r#"
250
252
[mining]
251
- num_cores = 4
252
- max_memory_mb = 16384
253
- max_poa_threads = 4
254
- max_pow_threads = 4
255
-
256
- [performance]
257
- num_cores = 4
258
- max_memory_mb = 16384
259
- max_poa_threads = 4
260
- max_pow_threads = 4
261
-
262
- [performance]
253
+ miner_name = "tape_miner"
263
254
num_cores = 4
264
255
max_memory_mb = 16384
265
256
max_poa_threads = 4
You can’t perform that action at this time.
0 commit comments