P2PServer: ban peers that don't broadcast blocks

This commit is contained in:
SChernykh
2021-09-13 14:26:52 +02:00
parent 0d439e7712
commit da0f376bef
4 changed files with 33 additions and 0 deletions
+5
View File
@@ -737,6 +737,11 @@ uint64_t SideChain::miner_count()
return m_seenWallets.size();
}
time_t SideChain::last_updated() const
{
return m_chainTip ? m_chainTip->m_localTimestamp : 0;
}
bool SideChain::is_default() const
{
constexpr uint8_t default_consensus_id[HASH_SIZE] = {