We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2b4e3 commit 4f0b507Copy full SHA for 4f0b507
stacks-signer/src/signerdb.rs
@@ -858,7 +858,7 @@ impl SignerDb {
858
&self,
859
tenure: &ConsensusHash,
860
) -> Result<u64, DBError> {
861
- let query = "SELECT COALESCE((MAX(stacks_height) - MIN(stacks_height) + 1), 0) as block_count FROM blocks WHERE consensus_hash = ?1 AND state = ?2";
+ let query = "SELECT COALESCE((MAX(stacks_height) - MIN(stacks_height) + 1), 0) AS block_count FROM blocks WHERE consensus_hash = ?1 AND state = ?2";
862
let args = params![tenure, &BlockState::GloballyAccepted.to_string()];
863
let block_count_opt: Option<u64> = query_row(&self.db, query, args)?;
864
match block_count_opt {
0 commit comments