Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
chore: fix integration test to use the expected signer keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jcnelson committed Feb 9, 2024
1 parent cafa35e commit 0772e75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion stacks-signer/src/runloop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,12 @@ impl<C: Coordinator> SignerRunLoop<Vec<OperationResult>, RunLoopCommand> for Run
// TODO: This should be called every time as DKG can change at any time...but until we have the node
// set up to receive cast votes...just do on initialization.
if self.state == State::Uninitialized {
let request_fn = || self.initialize().map_err(backoff::Error::transient);
let request_fn = || {
self.initialize().map_err(|e| {
warn!("Failed to initialize: {:?}", &e);
backoff::Error::transient(e)
})
};
retry_with_exponential_backoff(request_fn)
.expect("Failed to connect to initialize due to timeout. Stacks node may be down.");
}
Expand Down
2 changes: 1 addition & 1 deletion stackslib/src/clarity_vm/clarity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ impl<'a, 'b> ClarityBlockConnection<'a, 'b> {

let signers_db_receipt = self.as_transaction(|tx_conn| {
// initialize with a synthetic transaction
debug!("Instantiate {} contract", &signers_contract_id);
debug!("Instantiate .{} contract", &signers_name);
let receipt = StacksChainState::process_transaction_payload(
tx_conn,
&signers_contract_tx,
Expand Down
2 changes: 1 addition & 1 deletion testnet/stacks-node/src/tests/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ fn setup_stx_btc_node(
&naka_conf,
&blocks_processed,
signer_stacks_private_keys,
&[StacksPrivateKey::default()],
signer_stacks_private_keys,
&mut btc_regtest_controller,
);

Expand Down

0 comments on commit 0772e75

Please sign in to comment.