mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-06-02 14:18:32 +08:00
CRC: cleanup comments and var names
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
This commit is contained in:
@@ -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.");
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user