|
| virtual int | run (const std::string &filename) |
| virtual int | init () |
Definition at line 37 of file block.cpp.
◆ run()
| int BlockFuzzer::run |
( |
const std::string & | filename | ) |
|
|
virtual |
Implements Fuzzer.
Definition at line 45 of file block.cpp.
46{
47 std::string s;
48
50 {
51 std::cout << "Error: failed to load file " << filename << std::endl;
52 return 1;
53 }
56 {
57 std::cout << "Error: failed to parse block from file " << filename << std::endl;
58 return 1;
59 }
60 return 0;
61}
bool parse_and_validate_block_from_blob(const blobdata &b_blob, block &b, crypto::hash *block_hash)
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:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/fuzz/block.cpp