Skip to content

Commit 6ec7af9

Browse files
committed
don't use snapshot in db migrations
1 parent f73ef70 commit 6ec7af9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,10 @@ func ValidateHyperSyncFlags(isHypersync bool, syncType NodeSyncType) {
362362
}
363363

364364
func RunDBMigrationsOnce(db *badger.DB, snapshot *Snapshot, params *DeSoParams) error {
365-
if err := RunBlockIndexMigrationOnce(db, snapshot, params); err != nil {
365+
if err := RunBlockIndexMigrationOnce(db, nil, params); err != nil {
366366
return errors.Wrapf(err, "RunDBMigrationsOnce: Problem running block index migration")
367367
}
368-
if err := RunDAOCoinLimitOrderMigrationOnce(db, snapshot); err != nil {
368+
if err := RunDAOCoinLimitOrderMigrationOnce(db, nil); err != nil {
369369
return errors.Wrapf(err, "RunDBMigrationsOnce: Problem running DAOCoin limit order migration")
370370
}
371371
return nil

0 commit comments

Comments
 (0)