Skip to content

Commit

Permalink
Add more examples for migration height
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbhat1 committed Oct 29, 2024
1 parent 240ccb1 commit 3fea70e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion docs/migration/seidb_archive_migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,17 @@ This may take a couple hours to run. You will see logs of form

### Step 3: Note down MIGRATION_HEIGHT
Note down the latest height as outputted from the sc migration log.
Save it as an env var $MIGRATION_HEIGHT.

As an example the sc migration log would show:
```
latest version: 111417590
D[2024-10-29|15:26:03.657] Finished loading IAVL tree
D[2024-10-29|15:26:03.657] Finished loading IAVL tree
D[2024-10-29|15:26:03.657] Finished loading IAVL tree
```

Save that `latest version` (in example 111417590) as an env var $MIGRATION_HEIGHT.

```bash
MIGRATION_HEIGHT=<>
```
Expand Down
2 changes: 1 addition & 1 deletion tools/migration/ss/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (m *Migrator) Verify(version int64) error {
verifyErr = fmt.Errorf("verification error: value doesn't match for key %s", string(key))
}
count++
if count%10000 == 0 {
if count%1000000 == 0 {
fmt.Printf("SeiDB Archive Migration:: Verified %d keys in for module %s\n", count, module)
}
return false
Expand Down

0 comments on commit 3fea70e

Please sign in to comment.