Add a test to exercise LedgerMaster::missingFromCompleteLedgerRange

This commit is contained in:
Ed Hennis
2025-07-08 13:14:45 -04:00
parent e629a1f70e
commit ddd53806df
4 changed files with 100 additions and 4 deletions

View File

@@ -72,6 +72,15 @@ setupConfigForUnitTests(Config& cfg)
namespace jtx {
std::unique_ptr<Config>
online_delete(std::unique_ptr<Config> cfg, std::uint32_t deleteInterval)
{
cfg->LEDGER_HISTORY = deleteInterval;
auto& section = cfg->section(ConfigSection::nodeDatabase());
section.set("online_delete", std::to_string(deleteInterval));
return cfg;
}
std::unique_ptr<Config>
no_admin(std::unique_ptr<Config> cfg)
{