Skip to content

Commit beb6fba

Browse files
committed
crc: add test to bitcoin-tests
1 parent fe20e24 commit beb6fba

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ jobs:
133133
- tests::signer::v0::continue_after_fast_block_no_sortition
134134
- tests::signer::v0::block_validation_response_timeout
135135
- tests::signer::v0::block_validation_pending_table
136+
- tests::signer::v0::new_tenure_while_validating_previous_scenario
136137
- tests::signer::v0::tenure_extend_after_bad_commit
137138
- tests::signer::v0::block_proposal_max_age_rejections
138139
- tests::signer::v0::global_acceptance_depends_on_block_announcement

stacks-signer/src/signerdb.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -995,22 +995,6 @@ impl SignerDb {
995995
Ok(Some(broadcasted))
996996
}
997997

998-
/// Get the current state of a given block in the database
999-
pub fn get_block_state(
1000-
&self,
1001-
block_sighash: &Sha512Trunc256Sum,
1002-
) -> Result<Option<BlockState>, DBError> {
1003-
let qry = "SELECT state FROM blocks WHERE signer_signature_hash = ?1 LIMIT 1";
1004-
let args = params![block_sighash];
1005-
let state_opt: Option<String> = query_row(&self.db, qry, args)?;
1006-
let Some(state) = state_opt else {
1007-
return Ok(None);
1008-
};
1009-
Ok(Some(
1010-
BlockState::try_from(state.as_str()).map_err(|_| DBError::Corruption)?,
1011-
))
1012-
}
1013-
1014998
/// Get a pending block validation, sorted by the time at which it was added to the pending table.
1015999
/// If found, remove it from the pending table.
10161000
pub fn get_and_remove_pending_block_validation(

0 commit comments

Comments
 (0)