Skip to content

Commit 722d01b

Browse files
committed
chore: clean out migration comments
1 parent da557e3 commit 722d01b

File tree

1 file changed

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

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,28 +1087,24 @@ impl StacksChainState {
10871087
while db_config.version != CHAINSTATE_VERSION {
10881088
match db_config.version.as_str() {
10891089
"1" => {
1090-
// migrate to 2
10911090
info!("Migrating chainstate schema from version 1 to 2");
10921091
for cmd in CHAINSTATE_SCHEMA_2.iter() {
10931092
tx.execute_batch(cmd)?;
10941093
}
10951094
}
10961095
"2" => {
1097-
// migrate to 3
10981096
info!("Migrating chainstate schema from version 2 to 3");
10991097
for cmd in CHAINSTATE_SCHEMA_3.iter() {
11001098
tx.execute_batch(cmd)?;
11011099
}
11021100
}
11031101
"3" => {
1104-
// migrate to nakamoto 1
11051102
info!("Migrating chainstate schema from version 3 to 4: nakamoto support");
11061103
for cmd in NAKAMOTO_CHAINSTATE_SCHEMA_1.iter() {
11071104
tx.execute_batch(cmd)?;
11081105
}
11091106
}
11101107
"4" => {
1111-
// migrate to nakamoto 2
11121108
info!(
11131109
"Migrating chainstate schema from version 4 to 5: fix nakamoto tenure typo"
11141110
);
@@ -1117,14 +1113,12 @@ impl StacksChainState {
11171113
}
11181114
}
11191115
"5" => {
1120-
// migrate to nakamoto 3
11211116
info!("Migrating chainstate schema from version 5 to 6: adds height_in_tenure field");
11221117
for cmd in NAKAMOTO_CHAINSTATE_SCHEMA_3.iter() {
11231118
tx.execute_batch(cmd)?;
11241119
}
11251120
}
11261121
"6" => {
1127-
// migrate to nakamoto 3
11281122
info!(
11291123
"Migrating chainstate schema from version 6 to 7: adds signer_stats table"
11301124
);
@@ -1133,9 +1127,8 @@ impl StacksChainState {
11331127
}
11341128
}
11351129
"7" => {
1136-
// migrate to nakamoto 3
11371130
info!(
1138-
"Migrating chainstate schema from version 7 to 8: just bump the schema (added indexes)"
1131+
"Migrating chainstate schema from version 7 to 8: add index for nakamoto block headers"
11391132
);
11401133
for cmd in NAKAMOTO_CHAINSTATE_SCHEMA_5.iter() {
11411134
tx.execute_batch(cmd)?;

0 commit comments

Comments
 (0)