mirror of
https://github.com/Xahau/xahaud.git
synced 2026-09-26 23:29:04 +00:00
fix(test): persist harness relational ledgers with sqlite
xahaud envconfig defaults relational to per-app rwdb, so LOAD latest after stopNode cannot find the saved ledger. Donor unit tests leave sqlite files under database_path; match that for restart policy.
This commit is contained in:
@@ -339,6 +339,11 @@ public:
|
||||
auto cfg = peeredEnvconfig(envconfig());
|
||||
// Non-standalone REQUIRES a real database_path (Config.cpp:1230).
|
||||
cfg->legacy("database_path", spec.dbPath);
|
||||
// xahaud envconfig defaults [relational_db] to rwdb (per-Application
|
||||
// in-memory). Donor envconfig leaves sqlite, so restartNode can LOAD
|
||||
// latest from files under database_path. Keep that persistence here;
|
||||
// otherwise setup() fails with "specified ledger could not be loaded".
|
||||
cfg->overwrite(SECTION_RELATIONAL_DB, "backend", "sqlite");
|
||||
// The memory nodestore backend is a PROCESS-GLOBAL static keyed by
|
||||
// the [node_db] path string, and envconfig's fixed "main" would make
|
||||
// every node in every run share one content-addressed table that
|
||||
|
||||
Reference in New Issue
Block a user