From 62dbc9e9b5bb75c3d4f24dfee86df2a70f867d40 Mon Sep 17 00:00:00 2001 From: Simone Orsi <241460653+simone-stacks@users.noreply.github.com> Date: Tue, 19 May 2026 10:27:07 +0000 Subject: [PATCH 1/2] chore: remove unused RawConfigFile::load_from_file in stacks-signer --- stacks-signer/src/config.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/stacks-signer/src/config.rs b/stacks-signer/src/config.rs index 9f7d6da022b..f2ad7555e8a 100644 --- a/stacks-signer/src/config.rs +++ b/stacks-signer/src/config.rs @@ -479,11 +479,6 @@ impl RawConfigFile { toml::from_str(data).map_err(|e| ConfigError::ParseError(format!("{e:?}")))?; Ok(config) } - /// load the config from a file and parse it - #[allow(dead_code)] - pub fn load_from_file(path: &str) -> Result { - Self::try_from(&PathBuf::from(path)) - } } impl TryFrom<&PathBuf> for RawConfigFile { From b5f93d610acd79ce9a6aa51d1797a39d45ed80e8 Mon Sep 17 00:00:00 2001 From: Simone Orsi <241460653+simone-stacks@users.noreply.github.com> Date: Tue, 19 May 2026 10:27:12 +0000 Subject: [PATCH 2/2] chore: drop write-only LastCommit::start_block_hash field --- stacks-node/src/nakamoto_node/relayer.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/stacks-node/src/nakamoto_node/relayer.rs b/stacks-node/src/nakamoto_node/relayer.rs index 6b0bdea184e..1c47352b9da 100644 --- a/stacks-node/src/nakamoto_node/relayer.rs +++ b/stacks-node/src/nakamoto_node/relayer.rs @@ -129,9 +129,6 @@ pub struct LastCommit { stacks_tip: StacksBlockId, /// the tenure consensus hash for the tip's tenure tenure_consensus_hash: ConsensusHash, - /// the start-block hash of the tip's tenure - #[allow(dead_code)] - start_block_hash: BlockHeaderHash, /// What is the epoch in which this was sent? epoch_id: StacksEpochId, /// commit txid (to be filled in on submission) @@ -223,7 +220,6 @@ impl LastCommit { burn_tip: BlockSnapshot, stacks_tip: StacksBlockId, tenure_consensus_hash: ConsensusHash, - start_block_hash: BlockHeaderHash, epoch_id: StacksEpochId, ) -> Self { Self { @@ -231,7 +227,6 @@ impl LastCommit { burn_tip, stacks_tip, tenure_consensus_hash, - start_block_hash, epoch_id, txid: None, } @@ -1285,9 +1280,6 @@ impl RelayerThread { sort_tip, stacks_tip, highest_tenure_start_block_header.consensus_hash, - highest_tenure_start_block_header - .anchored_header - .block_hash(), target_epoch.epoch_id, )) }