CRC: cleanup comments and var names

Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
This commit is contained in:
Jacinta Ferrant
2024-02-07 13:35:45 -08:00
parent 48d503fe55
commit 84d51795cc
2 changed files with 3 additions and 3 deletions

View File

@@ -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.");

View File

@@ -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)