Electroneum
Loading...
Searching...
No Matches
tools::error::not_enough_outs_to_mix Struct Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::not_enough_outs_to_mix:
Collaboration diagram for tools::error::not_enough_outs_to_mix:

Public Types

typedef std::unordered_map< uint64_t, uint64_tscanty_outs_t

Public Member Functions

 not_enough_outs_to_mix (std::string &&loc, const scanty_outs_t &scanty_outs, size_t mixin_count)
const scanty_outs_tscanty_outs () const
size_t mixin_count () const
std::string to_string () const
Public Member Functions inherited from tools::error::wallet_error_base< std::logic_error >
const std::string & location () const
std::string to_string () const

Additional Inherited Members

Protected Member Functions inherited from tools::error::transfer_error
 transfer_error (std::string &&loc, const std::string &message)
Protected Member Functions inherited from tools::error::wallet_error_base< std::logic_error >
 wallet_error_base (std::string &&loc, const std::string &message)

Detailed Description

Definition at line 556 of file wallet_errors.h.

Member Typedef Documentation

◆ scanty_outs_t

Definition at line 558 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ not_enough_outs_to_mix()

tools::error::not_enough_outs_to_mix::not_enough_outs_to_mix ( std::string && loc,
const scanty_outs_t & scanty_outs,
size_t mixin_count )
inlineexplicit

Definition at line 560 of file wallet_errors.h.

561 : transfer_error(std::move(loc), "not enough outputs to use")
562 , m_scanty_outs(scanty_outs)
563 , m_mixin_count(mixin_count)
564 {
565 }
const scanty_outs_t & scanty_outs() const
transfer_error(std::string &&loc, const std::string &message)
Here is the call graph for this function:

Member Function Documentation

◆ mixin_count()

size_t tools::error::not_enough_outs_to_mix::mixin_count ( ) const
inline

Definition at line 568 of file wallet_errors.h.

568{ return m_mixin_count; }
Here is the caller graph for this function:

◆ scanty_outs()

const scanty_outs_t & tools::error::not_enough_outs_to_mix::scanty_outs ( ) const
inline

Definition at line 567 of file wallet_errors.h.

567{ return m_scanty_outs; }
Here is the caller graph for this function:

◆ to_string()

std::string tools::error::not_enough_outs_to_mix::to_string ( ) const
inline

Definition at line 570 of file wallet_errors.h.

571 {
572 std::ostringstream ss;
573 ss << transfer_error::to_string() << "scanty_outs:";
574 for (const auto& out: m_scanty_outs)
575 {
576 ss << '\n' << cryptonote::print_etn(out.first) << " - " << out.second;
577 }
578 return ss.str();
579 }
std::string print_etn(uint64_t amount, unsigned int decimal_point)
Here is the call graph for this function:

The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/wallet/wallet_errors.h