Skip to content

Commit c0b7a40

Browse files
committed
removed signed_over = 1 from get_globally_signed_block_count_in_tenure
1 parent 1f1c71b commit c0b7a40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stacks-signer/src/signerdb.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ impl SignerDb {
831831
&self,
832832
tenure: &ConsensusHash,
833833
) -> Result<i64, DBError> {
834-
let query = "SELECT COUNT(*) FROM blocks WHERE consensus_hash = ?1 AND state = ?2 AND signed_over = 1";
834+
let query = "SELECT COUNT(*) FROM blocks WHERE consensus_hash = ?1 AND state = ?2";
835835
let args = params![tenure, &BlockState::GloballyAccepted.to_string()];
836836
query_count(&self.db, query, args)
837837
}
@@ -2048,7 +2048,7 @@ mod tests {
20482048
assert_eq!(
20492049
db.get_globally_signed_block_count_in_tenure(&consensus_hash_1)
20502050
.unwrap(),
2051-
3
2051+
4
20522052
);
20532053

20542054
// add a locally signed block
@@ -2060,7 +2060,7 @@ mod tests {
20602060
assert_eq!(
20612061
db.get_globally_signed_block_count_in_tenure(&consensus_hash_1)
20622062
.unwrap(),
2063-
3
2063+
4
20642064
);
20652065
}
20662066

0 commit comments

Comments
 (0)