First signed block number changed to 35 to be able to get more signers.

Refactored cloning of Arcs.
This commit is contained in:
Revertron
2021-03-23 11:41:50 +01:00
parent 4ddacd2f57
commit 046c06beeb
8 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ pub fn create_key(context: Arc<Mutex<Context>>) {
let miners_count = Arc::new(AtomicUsize::new(0));
{ context.lock().unwrap().bus.post(Event::KeyGeneratorStarted); }
for _cpu in 0..num_cpus::get() {
let context = context.clone();
let context = Arc::clone(&context);
let mining = mining.clone();
let miners_count = miners_count.clone();
thread::spawn(move || {