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

View File

@@ -69,6 +69,7 @@ public:
difficulty_type total_hashes() const;
uint64_t block_time() const { return m_targetBlockTime; }
uint64_t miner_count();
time_t last_updated() const;
bool is_default() const;
static bool split_reward(uint64_t reward, const std::vector<MinerShare>& shares, std::vector<uint64_t>& rewards);