Fixed compile errors
This commit is contained in:
@@ -1169,8 +1169,10 @@ void SideChain::prune_seen_data()
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
prune(m_seenWallets, 72 * 3600);
|
constexpr uint64_t hour = 3600;
|
||||||
prune(m_seenOnionPubkeys, 12 * 3600);
|
|
||||||
|
prune(m_seenWallets, 72 * hour);
|
||||||
|
prune(m_seenOnionPubkeys, 12 * hour);
|
||||||
|
|
||||||
m_seenWalletsLastPruneTime = cur_time;
|
m_seenWalletsLastPruneTime = cur_time;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -957,7 +957,7 @@ std::string to_onion_v3(const hash& pubkey)
|
|||||||
static constexpr uint8_t version = 3;
|
static constexpr uint8_t version = 3;
|
||||||
|
|
||||||
hash h;
|
hash h;
|
||||||
keccak_custom([&pubkey](int offset) {
|
keccak_custom([&pubkey](int offset) -> uint8_t {
|
||||||
size_t k = static_cast<size_t>(offset);
|
size_t k = static_cast<size_t>(offset);
|
||||||
if (k < sizeof(prefix) - 1) {
|
if (k < sizeof(prefix) - 1) {
|
||||||
return prefix[k];
|
return prefix[k];
|
||||||
|
|||||||
Reference in New Issue
Block a user