Skip to content

Commit 3ba7462

Browse files
committed
CRC: fix comment and reuse reward_cycle_id
Signed-off-by: Jacinta Ferrant <jacinta.ferrant@gmail.com>
1 parent c488de2 commit 3ba7462

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

testnet/stacks-node/src/nakamoto_node/stackerdb_listener.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub struct StackerDBListener {
111111
/// Tracks any replay transactions from signers to decide when the miner should
112112
/// attempt to replay reorged blocks
113113
/// - key: StacksPublicKey
114-
/// - value: Vec<StacksTransaction>
114+
/// - value: Vec<ReplayInfo>
115115
pub(crate) replay_info: Arc<Mutex<HashMap<StacksPublicKey, ReplayInfo>>>,
116116
}
117117

@@ -184,11 +184,8 @@ impl StackerDBListener {
184184
})
185185
.collect::<Result<HashMap<_, _>, ChainstateError>>()?;
186186

187-
let reward_cycle = burnchain
188-
.block_height_to_reward_cycle(burn_tip.block_height)
189-
.expect("BUG: unknown reward cycle");
190187
let signers_contract_id = MessageSlotID::StateMachineUpdate
191-
.stacker_db_contract(config.is_mainnet(), reward_cycle);
188+
.stacker_db_contract(config.is_mainnet(), reward_cycle_id);
192189
let rpc_socket = config
193190
.node
194191
.get_rpc_loopback()

0 commit comments

Comments
 (0)