Definition at line 38 of file cold-transaction.cpp.
◆ ColdTransactionFuzzer()
| ColdTransactionFuzzer::ColdTransactionFuzzer |
( |
| ) |
|
|
inline |
◆ init()
| int ColdTransactionFuzzer::init |
( |
| ) |
|
|
virtual |
Reimplemented from Fuzzer.
Definition at line 50 of file cold-transaction.cpp.
52 static const char *
const spendkey_hex =
"0b4f47697ec99c3de6579304e5f25c68b07afbe55b71d99620bf6cbf4e45a80f";
62 catch (
const std::exception &e)
64 std::cerr <<
"Error on ColdTransactionFuzzer::init: " << e.what() << std::endl;
◆ run()
| int ColdTransactionFuzzer::run |
( |
const std::string & |
filename | ) |
|
|
virtual |
Implements Fuzzer.
Definition at line 70 of file cold-transaction.cpp.
76 std::cout <<
"Error: failed to load file " << filename << std::endl;
79 s =
std::string(
"\x01\x16serialization::archive") + s;
83 std::stringstream iss;
87 std::vector<tools::wallet2::pending_tx> ptx;
88 bool success = wallet.
sign_tx(exported_txs,
"/tmp/cold-transaction-test-signed", ptx);
89 std::cout << (
success ?
"signed" :
"error") << std::endl;
91 catch (
const std::exception &e)
93 std::cerr <<
"Failed to sign transaction: " << e.what() << std::endl;
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
expect< void > success() noexcept
The documentation for this class was generated from the following file: