File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -290,10 +290,12 @@ lazy_static! {
290
290
"# ,
291
291
] ;
292
292
293
- pub static ref NAKAMOTO_CHAINSTATE_SCHEMA_5 : [ & ' static str ; 1 ] = [
293
+ pub static ref NAKAMOTO_CHAINSTATE_SCHEMA_5 : [ & ' static str ; 2 ] = [
294
294
r#"
295
295
UPDATE db_config SET version = "8";
296
- "#
296
+ "# ,
297
+ // Add an index for index block hash in nakamoto block headers
298
+ "CREATE INDEX IF NOT EXISTS index_block_hash ON nakamoto_block_headers(index_block_hash);" ,
297
299
] ;
298
300
}
299
301
Original file line number Diff line number Diff line change @@ -903,7 +903,6 @@ const CHAINSTATE_INDEXES: &'static [&'static str] = &[
903
903
"CREATE INDEX IF NOT EXISTS index_block_header_by_affirmation_weight ON block_headers(affirmation_weight);" ,
904
904
"CREATE INDEX IF NOT EXISTS index_block_header_by_height_and_affirmation_weight ON block_headers(block_height,affirmation_weight);" ,
905
905
"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);" ,
907
906
] ;
908
907
909
908
pub use stacks_common:: consts:: MINER_REWARD_MATURITY ;
You can’t perform that action at this time.
0 commit comments