Merge branch 'develop'

This commit is contained in:
Some Random Crypto Guy
2024-08-30 21:22:41 +01:00

View File

@@ -2415,6 +2415,7 @@ bool wallet2::get_yield_summary_info(uint64_t &total_burnt,
// Iterate over the transfers in our wallet // Iterate over the transfers in our wallet
std::map<size_t, size_t> map_payouts; std::map<size_t, size_t> map_payouts;
std::map<std::string, std::pair<size_t, std::pair<uint64_t, uint64_t>>> payouts_active; std::map<std::string, std::pair<size_t, std::pair<uint64_t, uint64_t>>> payouts_active;
if (m_transfers.size() > 0) {
for (size_t idx = m_transfers.size()-1; idx>0; --idx) { for (size_t idx = m_transfers.size()-1; idx>0; --idx) {
const tools::wallet2::transfer_details& td = m_transfers[idx]; const tools::wallet2::transfer_details& td = m_transfers[idx];
//if (td.m_block_height < ybi_data[0].block_height) break; //if (td.m_block_height < ybi_data[0].block_height) break;
@@ -2431,7 +2432,7 @@ bool wallet2::get_yield_summary_info(uint64_t &total_burnt,
map_payouts[td.m_td_origin_idx] = idx; map_payouts[td.m_td_origin_idx] = idx;
} }
} }
}
// Scan the entries we have received to gather the state (total yield over period captured) // Scan the entries we have received to gather the state (total yield over period captured)
total_burnt = 0; total_burnt = 0;