Skip to content

Commit

Permalink
Merge pull request #3005 from blockstack/fix/pox-valid-index
Browse files Browse the repository at this point in the history
fix: significantly increase the speed of most RPC endpoints
  • Loading branch information
jcnelson committed Jan 18, 2022
2 parents bf691df + 12002ea commit 853a7bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chainstate/burn/db/sortdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ const SORTITION_DB_INITIAL_SCHEMA: &'static [&'static str] = &[
"CREATE INDEX snapshots_block_stacks_hashes ON snapshots(num_sortitions,index_root,winning_stacks_block_hash);",
"CREATE INDEX snapshots_block_heights ON snapshots(burn_header_hash,block_height);",
"CREATE INDEX snapshots_block_winning_hash ON snapshots(winning_stacks_block_hash);",
"CREATE INDEX snapshots_canonical_chain_tip ON snapshots(pox_valid,block_height DESC,burn_header_hash ASC);",
"CREATE INDEX block_arrivals ON snapshots(arrival_index,burn_header_hash);",
"CREATE INDEX arrival_indexes ON snapshots(arrival_index);",
r#"
Expand Down

0 comments on commit 853a7bc

Please sign in to comment.