102@@ -103,6 +103,8 @@ def __init__(self, i, datadir, *, chain, rpchost, timewait, timeout_factor, bitc
103 "-debugexclude=leveldb",
104 "-uacomment=testnode%d" % i,
105 ]
106+ # To improve SQLite wallet performance so that the tests don't timeout, use -unsafesqlitesync
107+ append_config(datadir, ["unsafesqlitesync=1"])
Why not add -unsafesqlitesync=1
to self.args[]
which is defined just above?
0 self.args = [
1 self.binary,
2 "-datadir=" + self.datadir,
3 "-logtimemicros",
4 "-debug",
5 "-debugexclude=libevent",
6 "-debugexclude=leveldb",
7 "-uacomment=testnode%d" % i,
8+ "-unsafesqlitesync=1",
9 ]
self.args
is command line only, not in the conf file. I wanted this to be in the bitcoin.conf file, although thinking on that, I’m not sure if it is necessary.
I think this question will rise every time somebody looks here (even after merge). Maybe move it to self.args[]
, or if there is a reason to use append_config()
, then mention that reason in a comment.
It is possible to modify write_config
if the goal is to add a static option to the conf file
write_config
was the function I was looking for. Changed to use that instead.