Definition at line 38 of file cold-outputs.cpp.
◆ ColdOutputsFuzzer()
| ColdOutputsFuzzer::ColdOutputsFuzzer |
( |
| ) |
|
|
inline |
◆ init()
| int ColdOutputsFuzzer::init |
( |
| ) |
|
|
virtual |
Reimplemented from Fuzzer.
Definition at line 49 of file cold-outputs.cpp.
51 static const char *
const spendkey_hex =
"0b4f47697ec99c3de6579304e5f25c68b07afbe55b71d99620bf6cbf4e45a80f";
61 catch (
const std::exception &e)
63 std::cerr <<
"Error on ColdOutputsFuzzer::init: " << e.what() << std::endl;
◆ run()
| int ColdOutputsFuzzer::run |
( |
const std::string & |
filename | ) |
|
|
virtual |
Implements Fuzzer.
Definition at line 69 of file cold-outputs.cpp.
75 std::cout <<
"Error: failed to load file " << filename << std::endl;
78 s =
std::string(
"\x01\x16serialization::archive") + s;
81 std::pair<size_t, std::vector<tools::wallet2::transfer_details>> outputs;
82 std::stringstream iss;
87 std::cout << boost::lexical_cast<std::string>(n_outputs) <<
" outputs imported" << std::endl;
89 catch (
const std::exception &e)
91 std::cerr <<
"Failed to import outputs: " << e.what() << std::endl;
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
The documentation for this class was generated from the following file: