Skip to content

Commit 6a1fbc4

Browse files
committed
Merge pull request #5942
fc72020 don't trickle for whitelisted nodes (Ruben de Vries)
2 parents 687f10d + fc72020 commit 6a1fbc4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/main.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ bool LoadBlockIndex();
167167
void UnloadBlockIndex();
168168
/** Process protocol messages received from a given node */
169169
bool ProcessMessages(CNode* pfrom);
170-
/** Send queued protocol messages to be sent to a give node */
170+
/**
171+
* Send queued protocol messages to be sent to a give node.
172+
*
173+
* @param[in] pto The node which we are sending messages to.
174+
* @param[in] fSendTrickle When true send the trickled data, otherwise trickle the data until true.
175+
*/
171176
bool SendMessages(CNode* pto, bool fSendTrickle);
172177
/** Run an instance of the script checking thread */
173178
void ThreadScriptCheck();

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ void ThreadMessageHandler()
14061406
{
14071407
TRY_LOCK(pnode->cs_vSend, lockSend);
14081408
if (lockSend)
1409-
g_signals.SendMessages(pnode, pnode == pnodeTrickle);
1409+
g_signals.SendMessages(pnode, pnode == pnodeTrickle || pnode->fWhitelisted);
14101410
}
14111411
boost::this_thread::interruption_point();
14121412
}

0 commit comments

Comments
 (0)