Don't send the same Monero block broadcast to peers who sent it already
This commit is contained in:
+5
-1
@@ -42,6 +42,7 @@
|
||||
#include "keccak.h"
|
||||
#include "merkle.h"
|
||||
#include "merge_mining_client.h"
|
||||
#include "sha256.h"
|
||||
|
||||
#ifdef WITH_TLS
|
||||
#include <openssl/curve25519.h>
|
||||
@@ -1146,7 +1147,10 @@ void p2pool::submit_block() const
|
||||
}
|
||||
request.append("\"]}");
|
||||
|
||||
m_p2pServer->store_monero_block_broadcast(blob.data(), static_cast<uint32_t>(blob.size()));
|
||||
hash digest;
|
||||
sha256(blob.data(), static_cast<uint32_t>(blob.size()), digest.h);
|
||||
|
||||
m_p2pServer->store_monero_block_broadcast(digest);
|
||||
|
||||
const Params::Host& host = current_host();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user