Skip to content

Commit 4a7319f

Browse files
committed
fix: cargo check errors after merge
1 parent eb80530 commit 4a7319f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

stacks-signer/src/tests/chainstate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ fn reorg_timing_testing(
209209
consensus_hash: last_sortition.consensus_hash,
210210
was_sortition: true,
211211
first_block_mined: Some(StacksBlockId([1; 32])),
212+
nakamoto_blocks: None,
212213
},
213214
TenureForkingInfo {
214215
burn_block_hash: BurnchainHeaderHash([128; 32]),
@@ -218,6 +219,7 @@ fn reorg_timing_testing(
218219
consensus_hash: view.cur_sortition.parent_tenure_id,
219220
was_sortition: true,
220221
first_block_mined: Some(StacksBlockId([2; 32])),
222+
nakamoto_blocks: None,
221223
},
222224
];
223225

stacks-signer/src/tests/signer_state.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ fn determine_global_states() {
219219
burn_block_height,
220220
current_miner: (&current_miner).into(),
221221
active_signer_protocol_version: local_supported_signer_protocol_version, // a majority of signers are saying they support version the same local_supported_signer_protocol_version, so update it here...
222+
tx_replay_state: false,
222223
};
223224

224225
assert_eq!(
@@ -263,6 +264,7 @@ fn determine_global_states() {
263264
burn_block_height,
264265
current_miner: (&new_miner).into(),
265266
active_signer_protocol_version: local_supported_signer_protocol_version, // a majority of signers are saying they support version the same local_supported_signer_protocol_version, so update it here...
267+
tx_replay_state: false,
266268
};
267269

268270
// Let's tip the scales over to a different miner

stacks-signer/src/v0/signer_state.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ impl GlobalStateEvaluator {
150150
burn_block_height: *burn_block_height,
151151
current_miner: current_miner.into(),
152152
active_signer_protocol_version,
153+
tx_replay_state: false,
153154
};
154155
let entry = state_views
155156
.entry(state_machine.clone())
@@ -845,6 +846,7 @@ impl LocalStateMachine {
845846
burn_block_height: *burn_block_height,
846847
current_miner: current_miner.into(),
847848
active_signer_protocol_version,
849+
tx_replay_state: false,
848850
});
849851
// Because we updated our active signer protocol version, update local_update so its included in the subsequent evaluations
850852
let update: Result<StateMachineUpdateMessage, _> = (&*self).try_into();
@@ -877,6 +879,7 @@ impl LocalStateMachine {
877879
burn_block_height,
878880
current_miner: (&new_miner).into(),
879881
active_signer_protocol_version,
882+
tx_replay_state: false,
880883
});
881884
}
882885
}

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12271,7 +12271,7 @@ fn handle_considered_txs_foreign_key_failure() {
1227112271
next_block_and_process_new_stacks_block(&mut btc_regtest_controller, 60, &coord_channel)
1227212272
.unwrap();
1227312273

12274-
let good_transfer_tx = make_stacks_transfer(
12274+
let good_transfer_tx = make_stacks_transfer_serialized(
1227512275
&good_sender_sk,
1227612276
0,
1227712277
send_fee,
@@ -12293,7 +12293,7 @@ fn handle_considered_txs_foreign_key_failure() {
1229312293
TEST_MINE_STALL.set(true);
1229412294
TEST_TX_STALL.set(true);
1229512295

12296-
let bad_transfer_tx = make_stacks_transfer(
12296+
let bad_transfer_tx = make_stacks_transfer_serialized(
1229712297
&bad_sender_sk,
1229812298
0,
1229912299
send_fee,
@@ -12421,7 +12421,7 @@ fn empty_mempool_sleep_ms() {
1242112421
info!("------------------------- Submit a transaction -------------------------");
1242212422
let proposals_before = naka_proposed_blocks.load(Ordering::SeqCst);
1242312423

12424-
let transfer_tx = make_stacks_transfer(
12424+
let transfer_tx = make_stacks_transfer_serialized(
1242512425
&sender_sk,
1242612426
0,
1242712427
send_fee,

0 commit comments

Comments
 (0)