Skip to content

Commit

Permalink
decrease musig2 runner interval (#2826)
Browse files Browse the repository at this point in the history
  • Loading branch information
kziemianek committed Jun 19, 2024
1 parent 854790f commit d3cb0b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ pub fn init_ceremonies_thread<ClientFactory, AK, ER, OCallApi, SIGNINGAK, SHIELD
});
}

std::thread::sleep(Duration::from_millis(1000))
std::thread::sleep(Duration::from_millis(1))
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn handle<ER: EnclaveRegistryLookup, AK: AccessKey<KeyType = SchnorrPair>>(
debug!("Ceremony {:?} not found, saving events...", ceremony_id);
let mut commands = ceremony_commands.lock().unwrap();
// ~1 minute (1 tick ~ 1 s)
let ceremony_tick_to_live = 60;
let ceremony_tick_to_live = 60_000;
let command = PendingCeremonyCommand {
ticks_left: ceremony_tick_to_live,
command: CeremonyCommand::SaveNonce(*address.as_ref(), nonce),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ pub fn handle<
) -> Result<(), SignBitcoinError> {
if relayer_registry.contains_key(signer) {
let mut registry = ceremony_registry.lock().map_err(|_| SignBitcoinError::CeremonyError)?;
// ~1 minute (1 tick ~ 1 s)
let ceremony_tick_to_live = 60;
// ~1 minute (1 tick ~ 1 ms)
let ceremony_tick_to_live = 60_000;

let signers: Result<SignersWithKeys, SignBitcoinError> = signer_registry
.get_all()
Expand Down

0 comments on commit d3cb0b1

Please sign in to comment.