From 7a7446c8bded9b42a3ce0535bd1582f31a90adc0 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 22 Dec 2020 20:08:26 -0500 Subject: [PATCH] force resync blockchain.db --- lbry/wallet/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/database.py b/lbry/wallet/database.py index aef2c6811..fb6c33648 100644 --- a/lbry/wallet/database.py +++ b/lbry/wallet/database.py @@ -430,7 +430,7 @@ class SQLiteMixin: return await self.db.executescript('\n'.join( f"DROP TABLE {table};" for table in tables - )) + ) + '\n' + 'PRAGMA WAL_CHECKPOINT(FULL);' + '\n' + 'VACUUM;') await self.db.execute(self.CREATE_VERSION_TABLE) await self.db.execute("INSERT INTO version VALUES (?)", (self.SCHEMA_VERSION,)) await self.db.executescript(self.CREATE_TABLES_QUERY) @@ -574,7 +574,7 @@ def get_and_reserve_spendable_utxos(transaction: sqlite3.Connection, accounts: L class Database(SQLiteMixin): - SCHEMA_VERSION = "1.4" + SCHEMA_VERSION = "1.5" PRAGMAS = """ pragma journal_mode=WAL;