placeholder checkin because of so many changes having been made - let's use github as a backup site

This commit is contained in:
Some Random Crypto Guy
2023-11-09 18:53:09 +00:00
parent aefeb0f83a
commit 7f6b8daa49
23 changed files with 484 additions and 170 deletions
+2 -2
View File
@@ -2926,10 +2926,10 @@ namespace cryptonote
bool core_rpc_server::on_get_circulating_supply(const COMMAND_RPC_GET_CIRCULATING_SUPPLY::request& req, COMMAND_RPC_GET_CIRCULATING_SUPPLY::response& res, epee::json_rpc::error& error_resp, const connection_context *ctx)
{
PERF_TIMER(on_get_circulating_supply);
std::vector<std::pair<std::string, std::string>> amounts = m_core.get_blockchain_storage().get_db().get_circulating_supply();
std::map<std::string, uint64_t> amounts = m_core.get_blockchain_storage().get_db().get_circulating_supply();
for (const auto &i: amounts)
{
COMMAND_RPC_GET_CIRCULATING_SUPPLY::supply_entry se(i.first, i.second);
COMMAND_RPC_GET_CIRCULATING_SUPPLY::supply_entry se(i.first, std::to_string(i.second));
res.supply_tally.push_back(se);
}
res.status = CORE_RPC_STATUS_OK;