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

Method payment_queue_remove

src/Core/WalletLegacy.cpp:539–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void WalletLegacy::payment_queue_remove(const Hash &tid) {
540 const std::string file = get_payment_queue_folder() + "/" + common::pod_to_hex(tid) + ".tx";
541 if (!platform::remove_file(file))
542 m_log(logging::WARNING) << "Failed to remove PQ transaction " << tid << " from file " << file;
543 else
544 m_log(logging::INFO) << "Removed PQ transaction " << tid << " from file " << file;
545 platform::remove_file(get_payment_queue_folder()); // When it becomes empty
546}
547
548void WalletLegacy::set_label(const std::string &address, const std::string &label) {
549 throw std::runtime_error("Legacy wallet file cannot store labels");

Callers

nothing calls this directly

Calls 2

pod_to_hexFunction · 0.85
remove_fileFunction · 0.85

Tested by

no test coverage detected