Merge pull request #10816

06221f2 wallet: store fee for not_enough_{unlocked_,}balance (tobtoht)

ACKs: selsta, plowsof
This commit is contained in:
tobtoht
2026-06-30 15:06:45 +00:00
+6
View File
@@ -494,11 +494,13 @@ namespace tools
: transfer_error(std::move(loc), "not enough unlocked money")
, m_available(available)
, m_tx_amount(tx_amount)
, m_fee(fee)
{
}
uint64_t available() const { return m_available; }
uint64_t tx_amount() const { return m_tx_amount; }
uint64_t fee() const { return m_fee; }
std::string to_string() const
{
@@ -512,6 +514,7 @@ namespace tools
private:
uint64_t m_available;
uint64_t m_tx_amount;
uint64_t m_fee;
};
//----------------------------------------------------------------------------------------------------
struct not_enough_money : public transfer_error
@@ -520,11 +523,13 @@ namespace tools
: transfer_error(std::move(loc), "not enough money")
, m_available(available)
, m_tx_amount(tx_amount)
, m_fee(fee)
{
}
uint64_t available() const { return m_available; }
uint64_t tx_amount() const { return m_tx_amount; }
uint64_t fee() const { return m_fee; }
std::string to_string() const
{
@@ -538,6 +543,7 @@ namespace tools
private:
uint64_t m_available;
uint64_t m_tx_amount;
uint64_t m_fee;
};
//----------------------------------------------------------------------------------------------------
struct tx_not_possible : public transfer_error