wallet: store m_additional_flags in SQLiteDatabase to fix reopen path
This patch fixes a bug in Bitcoin Core's SQLite wallet code where an in-memory test wallet could accidentally be reopened as a real on-disk database, or be lost entirely during error recovery. The fix stores the original database flags so …
ee43743fby Pablo Martin+13−32 files