From 44a956413a5a568abf83e1f2e6c9ad23586c9ebc Mon Sep 17 00:00:00 2001 From: Marek Date: Fri, 17 Jun 2022 19:21:28 +0200 Subject: [PATCH] Reorder the column families so that they match the docs --- zebra-state/src/service/finalized_state/disk_db.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zebra-state/src/service/finalized_state/disk_db.rs b/zebra-state/src/service/finalized_state/disk_db.rs index 7b859d771ea..d4951a6666b 100644 --- a/zebra-state/src/service/finalized_state/disk_db.rs +++ b/zebra-state/src/service/finalized_state/disk_db.rs @@ -368,15 +368,19 @@ impl DiskDb { let column_families = vec![ // Blocks - rocksdb::ColumnFamilyDescriptor::new("block_header_by_height", db_options.clone()), rocksdb::ColumnFamilyDescriptor::new("hash_by_height", db_options.clone()), rocksdb::ColumnFamilyDescriptor::new("height_by_hash", db_options.clone()), + rocksdb::ColumnFamilyDescriptor::new("block_header_by_height", db_options.clone()), // Transactions rocksdb::ColumnFamilyDescriptor::new("tx_by_loc", db_options.clone()), rocksdb::ColumnFamilyDescriptor::new("hash_by_tx_loc", db_options.clone()), rocksdb::ColumnFamilyDescriptor::new("tx_loc_by_hash", db_options.clone()), // Transparent rocksdb::ColumnFamilyDescriptor::new("balance_by_transparent_addr", db_options.clone()), + rocksdb::ColumnFamilyDescriptor::new( + "tx_loc_by_transparent_addr_loc", + db_options.clone(), + ), // TODO: #3951 //rocksdb::ColumnFamilyDescriptor::new("tx_by_transparent_addr_loc", db_options.clone()), rocksdb::ColumnFamilyDescriptor::new("utxo_by_out_loc", db_options.clone()), @@ -384,10 +388,6 @@ impl DiskDb { "utxo_loc_by_transparent_addr_loc", db_options.clone(), ), - rocksdb::ColumnFamilyDescriptor::new( - "tx_loc_by_transparent_addr_loc", - db_options.clone(), - ), // Sprout rocksdb::ColumnFamilyDescriptor::new("sprout_nullifiers", db_options.clone()), rocksdb::ColumnFamilyDescriptor::new("sprout_anchors", db_options.clone()),