mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
Fixed block broadcast detection
Peers could ban each other erroneously for "not broadcasting blocks"
This commit is contained in:
parent
e44df03d82
commit
bc36be1e58
1 changed files with 1 additions and 0 deletions
|
@ -2426,6 +2426,7 @@ void P2PServer::P2PClient::on_block_notify(const uint8_t* buf)
|
|||
memcpy(id.h, buf, HASH_SIZE);
|
||||
|
||||
m_broadcastedHashes[m_broadcastedHashesIndex++ % array_size(&P2PClient::m_broadcastedHashes)] = id;
|
||||
m_lastBroadcastTimestamp = seconds_since_epoch();
|
||||
|
||||
P2PServer* server = static_cast<P2PServer*>(m_owner);
|
||||
|
||||
|
|
Loading…
Reference in a new issue