mirror of
https://github.com/monero-project/monero.git
synced 2026-07-28 14:47:15 -07:00
wallet: store fee for not_enough_{unlocked_,}balance
This commit is contained in:
@@ -494,11 +494,13 @@ namespace tools
|
|||||||
: transfer_error(std::move(loc), "not enough unlocked money")
|
: transfer_error(std::move(loc), "not enough unlocked money")
|
||||||
, m_available(available)
|
, m_available(available)
|
||||||
, m_tx_amount(tx_amount)
|
, m_tx_amount(tx_amount)
|
||||||
|
, m_fee(fee)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t available() const { return m_available; }
|
uint64_t available() const { return m_available; }
|
||||||
uint64_t tx_amount() const { return m_tx_amount; }
|
uint64_t tx_amount() const { return m_tx_amount; }
|
||||||
|
uint64_t fee() const { return m_fee; }
|
||||||
|
|
||||||
std::string to_string() const
|
std::string to_string() const
|
||||||
{
|
{
|
||||||
@@ -512,6 +514,7 @@ namespace tools
|
|||||||
private:
|
private:
|
||||||
uint64_t m_available;
|
uint64_t m_available;
|
||||||
uint64_t m_tx_amount;
|
uint64_t m_tx_amount;
|
||||||
|
uint64_t m_fee;
|
||||||
};
|
};
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
struct not_enough_money : public transfer_error
|
struct not_enough_money : public transfer_error
|
||||||
@@ -520,11 +523,13 @@ namespace tools
|
|||||||
: transfer_error(std::move(loc), "not enough money")
|
: transfer_error(std::move(loc), "not enough money")
|
||||||
, m_available(available)
|
, m_available(available)
|
||||||
, m_tx_amount(tx_amount)
|
, m_tx_amount(tx_amount)
|
||||||
|
, m_fee(fee)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t available() const { return m_available; }
|
uint64_t available() const { return m_available; }
|
||||||
uint64_t tx_amount() const { return m_tx_amount; }
|
uint64_t tx_amount() const { return m_tx_amount; }
|
||||||
|
uint64_t fee() const { return m_fee; }
|
||||||
|
|
||||||
std::string to_string() const
|
std::string to_string() const
|
||||||
{
|
{
|
||||||
@@ -538,6 +543,7 @@ namespace tools
|
|||||||
private:
|
private:
|
||||||
uint64_t m_available;
|
uint64_t m_available;
|
||||||
uint64_t m_tx_amount;
|
uint64_t m_tx_amount;
|
||||||
|
uint64_t m_fee;
|
||||||
};
|
};
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
struct tx_not_possible : public transfer_error
|
struct tx_not_possible : public transfer_error
|
||||||
|
|||||||
Reference in New Issue
Block a user