aboutsummaryrefslogtreecommitdiff
path: root/src/dummywallet.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-04-07 20:55:09 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-04-12 19:29:03 -0400
commit41f891da508114f1fd4df30b4068073ec30abc2a (patch)
tree1b3e171dfbc7eadf4d503659e4c973dcc93c3d9d /src/dummywallet.cpp
parentcb79cabdd9d9a6d183cf09575dd46925f2c9cb3b (diff)
tests: Skip SQLite fsyncs while testing
Since we want tests to run quickly, and since tests do a lot more db operations than expected we expect to see in actual usage, we disable sqlite's syncing behavior to make db operations run much faster. This syncing behavior is necessary for normal operation as it helps guarantee that data won't become lost or corrupted, but in tests, we don't care about that.
Diffstat (limited to 'src/dummywallet.cpp')
-rw-r--r--src/dummywallet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dummywallet.cpp b/src/dummywallet.cpp
index bb06c95e7d..95886d3138 100644
--- a/src/dummywallet.cpp
+++ b/src/dummywallet.cpp
@@ -50,6 +50,7 @@ void DummyWalletInit::AddWalletOptions(ArgsManager& argsman) const
"-flushwallet",
"-privdb",
"-walletrejectlongchains",
+ "-unsafesqlitesync",
});
}