MCPcopy Create free account
hub / github.com/ElementsProject/elements / ~FuzzedWallet

Method ~FuzzedWallet

src/wallet/test/fuzz/notifications.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 assert(wallet->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS));
58 }
59 ~FuzzedWallet()
60 {
61 const auto name{wallet->GetName()};
62 std::vector<bilingual_str> warnings;
63 std::optional<bool> load_on_start;
64 assert(RemoveWallet(context, wallet, load_on_start, warnings));
65 assert(warnings.empty());
66 UnloadWallet(std::move(wallet));
67 fs::remove_all(GetWalletDir() / name);
68 }
69 CScript GetScriptPubKey(FuzzedDataProvider& fuzzed_data_provider)
70 {
71 auto type{fuzzed_data_provider.PickValueInArray(OUTPUT_TYPES)};

Callers

nothing calls this directly

Calls 5

RemoveWalletFunction · 0.85
UnloadWalletFunction · 0.85
GetWalletDirFunction · 0.85
GetNameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected