File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -381,10 +381,9 @@ namespace db
381381
382382 void migrate_0_1 (MDB_txn& txn, tables_ const & tables)
383383 {
384- MINFO (" Migrating from db version 0 to 1..." );
385-
386384 // All addresses in version 0 were primary addresses, but didn't have a bool `is_subaddress`.
387385 // This migration adds a falsey `is_subaddress` to every account_address stored in the db.
386+ // If no addresses are stored, this wraps up quickly.
388387 struct account_address_v0
389388 {
390389 crypto::public_key view_public; // !< Must be first for LMDB optimizations.
@@ -544,6 +543,9 @@ namespace db
544543
545544 void migrate (MDB_txn& txn, tables_ const & tables, const unsigned oldversion)
546545 {
546+ if (oldversion == 0 )
547+ MINFO (" Setting up database..." );
548+
547549 if (oldversion < 1 )
548550 migrate_0_1 (txn, tables);
549551 }
You can’t perform that action at this time.
0 commit comments