Skip to content

Commit 5853580

Browse files
committed
fix: issues after merge
1 parent 6c46ea7 commit 5853580

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
- tests::signer::v0::bitcoind_forking_test
9494
- tests::signer::v0::multiple_miners
9595
- tests::signer::v0::mock_sign_epoch_25
96+
- tests::signer::v0::signer_set_rollover
9697
- tests::nakamoto_integrations::stack_stx_burn_op_integration_test
9798
- tests::nakamoto_integrations::check_block_heights
9899
- tests::nakamoto_integrations::clarity_burn_state

testnet/stacks-node/src/tests/signer/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
125125
initial_balances: Vec<(StacksAddress, u64)>,
126126
wait_on_signers: Option<Duration>,
127127
mut signer_config_modifier: F,
128-
node_config_modifier: G,
128+
mut node_config_modifier: G,
129129
btc_miner_pubkeys: &[Secp256k1PublicKey],
130130
) -> Self {
131131
// Generate Signer Data
@@ -135,7 +135,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
135135

136136
let (mut naka_conf, _miner_account) = naka_neon_integration_conf(None);
137137

138-
naka_modifier(&mut naka_conf);
138+
node_config_modifier(&mut naka_conf);
139139

140140
// Add initial balances to the config
141141
for (address, amount) in initial_balances.iter() {
@@ -192,15 +192,15 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
192192
.unwrap(),
193193
)
194194
.unwrap();
195-
&[pk]
195+
vec![pk]
196196
} else {
197-
btc_miner_pubkeys
197+
btc_miner_pubkeys.to_vec()
198198
};
199199
let node = setup_stx_btc_node(
200200
naka_conf,
201201
&signer_stacks_private_keys,
202202
&signer_configs,
203-
btc_miner_pubkeys,
203+
btc_miner_pubkeys.as_slice(),
204204
node_config_modifier,
205205
);
206206
let config = signer_configs.first().unwrap();

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ use libsigner::v0::messages::{
2727
use libsigner::{BlockProposal, SignerSession, StackerDBSession};
2828
use rand::RngCore;
2929
use stacks::address::AddressHashMode;
30-
use stacks::address::AddressHashMode;
3130
use stacks::chainstate::nakamoto::{NakamotoBlock, NakamotoBlockHeader, NakamotoChainState};
3231
use stacks::chainstate::stacks::address::PoxAddress;
3332
use stacks::chainstate::stacks::boot::MINERS_NAME;
3433
use stacks::chainstate::stacks::db::{StacksChainState, StacksHeaderInfo};
3534
use stacks::codec::StacksMessageCodec;
36-
use stacks::core::CHAIN_ID_TESTNET;
3735
use stacks::core::{StacksEpochId, CHAIN_ID_TESTNET};
3836
use stacks::libstackerdb::StackerDBChunkData;
3937
use stacks::net::api::postblock_proposal::TEST_VALIDATE_STALL;
@@ -45,9 +43,6 @@ use stacks::util_lib::boot::boot_code_id;
4543
use stacks::util_lib::signed_structured_data::pox4::{
4644
make_pox_4_signer_key_signature, Pox4SignatureTopic,
4745
};
48-
use stacks::util_lib::signed_structured_data::pox4::{
49-
make_pox_4_signer_key_signature, Pox4SignatureTopic,
50-
};
5146
use stacks_common::bitvec::BitVec;
5247
use stacks_signer::chainstate::{ProposalEvalConfig, SortitionsView};
5348
use stacks_signer::client::{SignerSlotID, StackerDB};
@@ -64,10 +59,8 @@ use crate::nakamoto_node::miner::TEST_BROADCAST_STALL;
6459
use crate::nakamoto_node::relayer::TEST_SKIP_COMMIT_OP;
6560
use crate::run_loop::boot_nakamoto;
6661
use crate::tests::nakamoto_integrations::{
67-
6862
boot_to_epoch_25, boot_to_epoch_3_reward_set, next_block_and, POX_4_DEFAULT_STACKER_BALANCE,
6963
POX_4_DEFAULT_STACKER_STX_AMT,
70-
, POX_4_DEFAULT_STACKER_STX_AMT,
7164
};
7265
use crate::tests::neon_integrations::{
7366
get_account, get_chain_info, next_block_and_wait, run_until_burnchain_height, submit_tx,
@@ -1986,6 +1979,7 @@ fn signer_set_rollover() {
19861979
}
19871980
naka_conf.node.rpc_bind = rpc_bind.clone();
19881981
},
1982+
&[],
19891983
);
19901984
assert_eq!(
19911985
new_spawned_signers[0].config.node_host,

0 commit comments

Comments
 (0)