mirror of
https://github.com/oxen-io/oxen-storage-server.git
synced 2023-12-13 21:00:26 +01:00
Need more bitzz
This commit is contained in:
parent
c3a0eadff1
commit
5818c5b5ac
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ std::vector<pow_difficulty_t> query_pow_difficulty(std::error_code& ec) {
|
|||
const json history = json::parse(ns_rr_rdata(rr) + 1, nullptr, true);
|
||||
new_history.reserve(history.size());
|
||||
for (const auto& el : history.items()) {
|
||||
const std::chrono::milliseconds timestamp(std::stoi(el.key()));
|
||||
const std::chrono::milliseconds timestamp(std::stoul(el.key()));
|
||||
const int difficulty = el.value().get<int>();
|
||||
new_history.push_back(pow_difficulty_t{timestamp, difficulty});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue