Skip to content

Commit 28c723b

Browse files
committed
feat: add index for stacks block id in nakamoto_block_headers
1 parent 09d920c commit 28c723b

File tree

1 file changed

+1
-0
lines changed
  • stackslib/src/chainstate/stacks/db

1 file changed

+1
-0
lines changed

stackslib/src/chainstate/stacks/db/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,7 @@ const CHAINSTATE_INDEXES: &'static [&'static str] = &[
903903
"CREATE INDEX IF NOT EXISTS index_block_header_by_affirmation_weight ON block_headers(affirmation_weight);",
904904
"CREATE INDEX IF NOT EXISTS index_block_header_by_height_and_affirmation_weight ON block_headers(block_height,affirmation_weight);",
905905
"CREATE INDEX IF NOT EXISTS index_headers_by_consensus_hash ON block_headers(consensus_hash);",
906+
"CREATE INDEX IF NOT EXISTS index_block_hash ON nakamoto_block_headers(index_block_hash);",
906907
];
907908

908909
pub use stacks_common::consts::MINER_REWARD_MATURITY;

0 commit comments

Comments
 (0)