Skip to content

Commit cfacfed

Browse files
committed
Add burn block hash index to burn_blocks state table
Signed-off-by: Jacinta Ferrant <jacinta.ferrant@gmail.com>
1 parent 420e869 commit cfacfed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stacks-signer/src/signerdb.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ WHERE rn = 1;
516516
517517
DROP TABLE burn_blocks;
518518
ALTER TABLE temp_burn_blocks RENAME TO burn_blocks;
519+
520+
CREATE INDEX IF NOT EXISTS idx_burn_blocks_block_hash ON burn_blocks(block_hash);
519521
"#;
520522

521523
static CREATE_BLOCK_VALIDATION_PENDING_TABLE: &str = r#"

0 commit comments

Comments
 (0)