diff options
Diffstat (limited to 'src/selftest.cpp')
| -rw-r--r-- | src/selftest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/selftest.cpp b/src/selftest.cpp index 7a54271..408dd41 100644 --- a/src/selftest.cpp +++ b/src/selftest.cpp | |||
| @@ -1259,6 +1259,12 @@ static int RunWalletSQLiteMigrationSelfTest() | |||
| 1259 | } | 1259 | } |
| 1260 | nFail += Check(fAllMatch, | 1260 | nFail += Check(fAllMatch, |
| 1261 | "SQLite export preserves every wallet.dat key/value byte-for-byte") ? 0 : 1; | 1261 | "SQLite export preserves every wallet.dat key/value byte-for-byte") ? 0 : 1; |
| 1262 | |||
| 1263 | std::map<vector<unsigned char>, vector<unsigned char> > mapSQLite; | ||
| 1264 | CWalletRecordMapVisitor sqliteVisitor(mapSQLite); | ||
| 1265 | nFail += Check(db.ScanRecords(sqliteVisitor, strError) && | ||
| 1266 | mapSQLite == mapBDB, | ||
| 1267 | "SQLite wallet scanner streams every exported record byte-for-byte") ? 0 : 1; | ||
| 1262 | } | 1268 | } |
| 1263 | catch (const std::exception& e) | 1269 | catch (const std::exception& e) |
| 1264 | { | 1270 | { |