From 84d51795cc025c2a61a86aa544ece0698d898a84 Mon Sep 17 00:00:00 2001 From: Jacinta Ferrant Date: Wed, 7 Feb 2024 13:35:45 -0800 Subject: [PATCH] CRC: cleanup comments and var names Signed-off-by: Jacinta Ferrant --- stacks-signer/src/runloop.rs | 4 ++-- stacks-signer/src/signer.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stacks-signer/src/runloop.rs b/stacks-signer/src/runloop.rs index e128ffb3e..5ed6ceb64 100644 --- a/stacks-signer/src/runloop.rs +++ b/stacks-signer/src/runloop.rs @@ -204,10 +204,10 @@ impl RunLoop { }; if needs_refresh { let new_config = self.get_stacks_node_info(reward_cycle)?; - if let Some(new_config) = new_config { + if let Some(new_node_info) = new_config { debug!("Signer is registered for reward cycle {reward_cycle}. Initializing signer state."); self.stacks_signers - .insert(reward_index, Signer::new(&self.config, new_config)); + .insert(reward_index, Signer::new(&self.config, new_node_info)); } else { // Nothing to initialize. Signer is not registered for this reward cycle debug!("Signer is not registered for reward cycle {reward_cycle}. Nothing to initialize."); diff --git a/stacks-signer/src/signer.rs b/stacks-signer/src/signer.rs index 5874c95e5..e6f6df204 100644 --- a/stacks-signer/src/signer.rs +++ b/stacks-signer/src/signer.rs @@ -857,7 +857,7 @@ impl Signer { return None; }; if origin_nonce < account_nonce { - debug!("Signer #{}: Transaction {} has an invalid nonce. Removing if removing it from our stored transactions.", self.signer_id, transaction.txid()); + debug!("Signer #{}: Transaction {} has an outdated nonce. Removing it from our stored transactions.", self.signer_id, transaction.txid()); return None; } Some(transaction)