upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/selftest.cpp
diff options
context:
space:
mode:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-14 16:20:41 -0300
committerNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-14 16:20:41 -0300
commitdf84b82162b38dcd57114510b9651af5d85f04cb (patch)
tree37d252761127383f5f8eab98a0e57f33605e1fc0 /src/selftest.cpp
parent25b1eb8e17bb4012a59166667c7e37564a2af939 (diff)
wallet: scan SQLite wallet records
Diffstat (limited to 'src/selftest.cpp')
-rw-r--r--src/selftest.cpp6
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 {