Explorar o código

darkfid/rpc_xmr: on submit remove just the referenced job

skoupidi hai 8 meses
pai
achega
d3b78aa8e4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bin/darkfid/src/rpc_xmr.rs

+ 2 - 2
bin/darkfid/src/rpc_xmr.rs

@@ -464,10 +464,10 @@ impl DarkfiNode {
         block.header.pow_data = PowData::Monero(monero_pow_data);
         block.header.pow_data = PowData::Monero(monero_pow_data);
         block.sign(secret);
         block.sign(secret);
 
 
-        // At this point we should be able to clear the working job.
+        // At this point we should be able to remove the submitted job.
         // We still won't release the lock in hope of proposing the block
         // We still won't release the lock in hope of proposing the block
         // first.
         // first.
-        mm_blocktemplates.clear();
+        mm_blocktemplates.remove(&template_key);
 
 
         // Propose the new block
         // Propose the new block
         info!(
         info!(