Skip to content

Commit

Permalink
fix: block is not signing by default
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Jun 19, 2024
1 parent 828bf7e commit 0684d6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/rs-drive-abci/src/mimic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,13 @@ impl<'a, C: CoreRPCLike> FullAbciApplication<'a, C> {
threshold_vote_extensions: extensions,
};
//if not in testing this will default to true
#[cfg(not(feature = "testing-config"))]
let sign_block = true;

#[cfg(feature = "testing-config")]
if self.platform.config.testing_configs.block_signing {
let sign_block = self.platform.config.testing_configs.block_signing;

if sign_block {
let quorum_hash: [u8; 32] = quorum_hash.try_into().expect("wrong quorum hash len");
let digest = commit
.calculate_sign_hash(
Expand Down

0 comments on commit 0684d6c

Please sign in to comment.