| 515 | } |
| 516 | |
| 517 | std::vector<BinaryArray> WalletLegacy::payment_queue_get() const { |
| 518 | std::vector<BinaryArray> result; |
| 519 | platform::remove_file(get_payment_queue_folder() + "/tmp.tx"); |
| 520 | for (const auto &file : platform::get_filenames_in_folder(get_payment_queue_folder())) { |
| 521 | BinaryArray body; |
| 522 | if (!platform::load_file(get_payment_queue_folder() + "/" + file, body)) |
| 523 | continue; |
| 524 | result.push_back(std::move(body)); |
| 525 | } |
| 526 | return result; |
| 527 | } |
| 528 | |
| 529 | void WalletLegacy::payment_queue_add(const Hash &tid, const BinaryArray &binary_transaction) { |
| 530 | const std::string file = get_payment_queue_folder() + "/" + common::pod_to_hex(tid) + ".tx"; |
nothing calls this directly
no test coverage detected