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;
47 fs::remove_all(wallet_path);
uint32_t rand32() noexcept
Generate a random 32-bit integer.
uint256 rand256() noexcept
generate a random uint256.
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
std::string ToString() const
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
std::string utf8string() const
Return a UTF-8 representation of the path as a std::string, for compatibility with code using std::st...
static void WalletCreate(benchmark::Bench &bench, bool encrypted)
BENCHMARK(WalletBalanceDirty, benchmark::PriorityLevel::HIGH)
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)
@ WALLET_FLAG_DESCRIPTORS
Indicate that this wallet supports DescriptorScriptPubKeyMan.
static void WalletCreatePlain(benchmark::Bench &bench)
static void WalletCreateEncrypted(benchmark::Bench &bench)
SecureString create_passphrase
std::optional< DatabaseFormat > require_format
WalletContext struct containing references to state shared between CWallet instances,...
interfaces::Chain * chain