Skip to content

Commit 4dc5c0e

Browse files
authored
Bump "keepOldConnections" by one for all LLMQ types (#2909)
And for llmq5_60, set it to 3 instead of 24 (which was incorrect from the beginning). Increasing all LLMQs "keepOldConnections" by one is required because we don't use the tip when scanning active quorums, but a block that is 8 blocks in the past. This however means that we need to keep connections for one additional quorum alive. This fixes an issue with signing sessions randomly failing with timeouts.
1 parent 7696a6f commit 4dc5c0e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/chainparams.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static Consensus::LLMQParams llmq5_60 = {
122122

123123
.signingActiveQuorumCount = 2, // just a few ones to allow easier testing
124124

125-
.keepOldConnections = 24,
125+
.keepOldConnections = 3,
126126
};
127127

128128
static Consensus::LLMQParams llmq50_60 = {
@@ -140,7 +140,7 @@ static Consensus::LLMQParams llmq50_60 = {
140140

141141
.signingActiveQuorumCount = 24, // a full day worth of LLMQs
142142

143-
.keepOldConnections = 24,
143+
.keepOldConnections = 25,
144144
};
145145

146146
static Consensus::LLMQParams llmq400_60 = {
@@ -158,7 +158,7 @@ static Consensus::LLMQParams llmq400_60 = {
158158

159159
.signingActiveQuorumCount = 4, // two days worth of LLMQs
160160

161-
.keepOldConnections = 4,
161+
.keepOldConnections = 5,
162162
};
163163

164164
// Used for deployment and min-proto-version signalling, so it needs a higher threshold
@@ -177,7 +177,7 @@ static Consensus::LLMQParams llmq400_85 = {
177177

178178
.signingActiveQuorumCount = 4, // two days worth of LLMQs
179179

180-
.keepOldConnections = 4,
180+
.keepOldConnections = 5,
181181
};
182182

183183

src/consensus/params.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct LLMQParams {
109109
int signingActiveQuorumCount;
110110

111111
// Used for inter-quorum communication. This is the number of quorums for which we should keep old connections. This
112-
// should be at least as much as the active quorums set.
112+
// should be at least one more then the active quorums set.
113113
int keepOldConnections;
114114
};
115115

0 commit comments

Comments
 (0)