Skip to content
This repository was archived by the owner on Oct 31, 2018. It is now read-only.

Commit 94ad34a

Browse files
Version 3.2.3.2
less RAM and CPU usage base max connections change to 10 Less orphan blocks in memory
1 parent 80d0538 commit 94ad34a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/clientversion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
99
#define CLIENT_VERSION_MAJOR 3
10-
#define CLIENT_VERSION_MINOR 1
11-
#define CLIENT_VERSION_REVISION 2
10+
#define CLIENT_VERSION_MINOR 2
11+
#define CLIENT_VERSION_REVISION 3
1212
#define CLIENT_VERSION_BUILD 2
1313

1414
// Converts the parameter X to a string after macro replacement on X has been performed.

src/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static const unsigned int MAX_STANDARD_TX_SIZE = MAX_BLOCK_SIZE_GEN/5;
4444
/** The maximum allowed number of signature check operations in a block (network rule) */
4545
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
4646
/** The maximum number of orphan transactions kept in memory */
47-
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100;
47+
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/500000;
4848
/** The maximum number of entries in an 'inv' protocol message */
4949
static const unsigned int MAX_INV_SZ = 50000;
5050
/** Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) */

src/net.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ void ThreadSocketHandler2(void* parg)
936936
if (nErr != WSAEWOULDBLOCK)
937937
printf("socket error accept failed: %d\n", nErr);
938938
}
939-
else if (nInbound >= GetArg("-maxconnections", 125) - MAX_OUTBOUND_CONNECTIONS)
939+
else if (nInbound >= GetArg("-maxconnections", 10) - MAX_OUTBOUND_CONNECTIONS)
940940
{
941941
closesocket(hSocket);
942942
}
@@ -1914,7 +1914,7 @@ void StartNode(void* parg)
19141914

19151915
if (semOutbound == NULL) {
19161916
// initialize semaphore
1917-
int nMaxOutbound = min(MAX_OUTBOUND_CONNECTIONS, (int)GetArg("-maxconnections", 125));
1917+
int nMaxOutbound = min(MAX_OUTBOUND_CONNECTIONS, (int)GetArg("-maxconnections", 10));
19181918
semOutbound = new CSemaphore(nMaxOutbound);
19191919
}
19201920

0 commit comments

Comments
 (0)