5 #if defined(HAVE_CONFIG_H) 19 auto test_setup = MakeNoLogFileContext<TestingSetup>();
23 context.
args = &test_setup->m_args;
24 context.
chain = test_setup->m_node.chain.get();
37 std::vector<bilingual_str> warnings;
39 fs::path wallet_path = test_setup->m_path_root /
strprintf(
"test_wallet_%d", random.rand32()).c_str();
47 fs::remove_all(wallet_path);
std::optional< DatabaseFormat > require_format
BENCHMARK(WalletBalanceDirty, benchmark::PriorityLevel::HIGH)
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
SecureString create_passphrase
Indicate that this wallet supports DescriptorScriptPubKeyMan.
static void WalletCreate(benchmark::Bench &bench, bool encrypted)
std::string utf8string() const
Return a UTF-8 representation of the path as a std::string, for compatibility with code using std::st...
WalletContext struct containing references to state shared between CWallet instances, like the reference to the chain interface, and the list of opened wallets.
interfaces::Chain * chain
Main entry point to nanobench's benchmarking facility.
std::shared_ptr< CWallet > CreateWallet(WalletContext &context, const std::string &name, std::optional< bool > load_on_start, DatabaseOptions &options, DatabaseStatus &status, bilingual_str &error, std::vector< bilingual_str > &warnings)
static void WalletCreateEncrypted(benchmark::Bench &bench)
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
static void WalletCreatePlain(benchmark::Bench &bench)