MCPcopy Create free account
hub / github.com/bcndev/bytecoin / payment_queue_get

Method payment_queue_get

src/Core/WalletLegacy.cpp:517–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517std::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
529void 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";

Callers

nothing calls this directly

Calls 3

remove_fileFunction · 0.85
get_filenames_in_folderFunction · 0.85
load_fileFunction · 0.85

Tested by

no test coverage detected