fixed sorting of yield_info output in CLI

This commit is contained in:
Some Random Crypto Guy
2025-03-17 11:22:21 +00:00
parent 420824005e
commit cb6cdac603
4 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -2412,7 +2412,7 @@ bool wallet2::get_yield_summary_info(uint64_t &total_burnt,
uint64_t &total_yield,
uint64_t &yield_per_stake,
uint64_t &ybi_data_size,
std::vector<std::tuple<size_t, std::string, std::string, uint64_t, uint64_t>> &payouts
std::vector<yield_payout_t> &payouts
)
{
// Get the total circulating supply of SALs
+4 -1
View File
@@ -1760,13 +1760,16 @@ private:
bool get_pricing_record(oracle::pricing_record& pr, const uint64_t height);
bool get_circulating_supply(std::vector<std::pair<std::string, std::string>> &amounts);
bool get_yield_info(std::vector<cryptonote::yield_block_info>& ybi_data);
typedef std::tuple<size_t, std::string, std::string, uint64_t, uint64_t> yield_payout_t;
bool get_yield_summary_info(uint64_t &total_burnt,
uint64_t &total_supply,
uint64_t &total_locked,
uint64_t &total_yield,
uint64_t &yield_per_stake,
uint64_t &ybi_data_size,
std::vector<std::tuple<size_t, std::string, std::string, uint64_t, uint64_t>> &payouts
std::vector<yield_payout_t> &payouts
);
private: