BlockTemplate code refactoring

- Moved block constants to one place
- Tuned block template max transaction limiter
This commit is contained in:
SChernykh
2023-04-21 11:09:57 +02:00
parent 44d2005ab1
commit 8bf045974f
5 changed files with 41 additions and 21 deletions
+1 -2
View File
@@ -61,8 +61,7 @@ P2PServer::P2PServer(p2pool* pool)
, m_fastestPeer(nullptr)
{
m_callbackBuf.resize(P2P_BUF_SIZE);
m_blockDeserializeBuf.reserve(131072);
m_blockDeserializeBuf.reserve(MAX_BLOCK_SIZE);
// Diffuse the initial state in case it has low quality
m_rng.discard(10000);