Fixed compile errors

This commit is contained in:
SChernykh
2025-10-20 15:06:56 +02:00
parent cb9fc89b22
commit f6353a6939
2 changed files with 5 additions and 3 deletions

View File

@@ -1169,8 +1169,10 @@ void SideChain::prune_seen_data()
}
};
prune(m_seenWallets, 72 * 3600);
prune(m_seenOnionPubkeys, 12 * 3600);
constexpr uint64_t hour = 3600;
prune(m_seenWallets, 72 * hour);
prune(m_seenOnionPubkeys, 12 * hour);
m_seenWalletsLastPruneTime = cur_time;
}

View File

@@ -957,7 +957,7 @@ std::string to_onion_v3(const hash& pubkey)
static constexpr uint8_t version = 3;
hash h;
keccak_custom([&pubkey](int offset) {
keccak_custom([&pubkey](int offset) -> uint8_t {
size_t k = static_cast<size_t>(offset);
if (k < sizeof(prefix) - 1) {
return prefix[k];