Electroneum
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< Base >
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< Base >
 wallet_error_base (std::string &&loc, const std::string &message)
 

Detailed Description

Definition at line 555 of file wallet_errors.h.

Member Typedef Documentation

◆ scanty_outs_t

Definition at line 557 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 559 of file wallet_errors.h.

560  : transfer_error(std::move(loc), "not enough outputs to use")
561  , m_scanty_outs(scanty_outs)
562  , m_mixin_count(mixin_count)
563  {
564  }
const T & move(const T &t)
Definition: gtest-port.h:1317
const scanty_outs_t & scanty_outs() const
transfer_error(std::string &&loc, const std::string &message)

Member Function Documentation

◆ mixin_count()

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

Definition at line 567 of file wallet_errors.h.

567 { return m_mixin_count; }

◆ scanty_outs()

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

Definition at line 566 of file wallet_errors.h.

566 { return m_scanty_outs; }

◆ to_string()

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

Definition at line 569 of file wallet_errors.h.

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

The documentation for this struct was generated from the following file: