diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-03-26 08:32:53 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-03-26 08:33:00 +0100 |
| commit | 6a1fbc4921ffc645e1ca86e96190da6c203c71d7 (patch) | |
| tree | 185fffb97cb298b8490ef4290e27815d36dc45c6 /src | |
| parent | Merge pull request #5812 (diff) | |
| parent | don't trickle for whitelisted nodes (diff) | |
| download | discoin-6a1fbc4921ffc645e1ca86e96190da6c203c71d7.tar.xz discoin-6a1fbc4921ffc645e1ca86e96190da6c203c71d7.zip | |
Merge pull request #5942
fc72020 don't trickle for whitelisted nodes (Ruben de Vries)
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.h | 7 | ||||
| -rw-r--r-- | src/net.cpp | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h index 09ffc4d28..ac73b242f 100644 --- a/src/main.h +++ b/src/main.h @@ -167,7 +167,12 @@ bool LoadBlockIndex(); void UnloadBlockIndex(); /** Process protocol messages received from a given node */ bool ProcessMessages(CNode* pfrom); -/** Send queued protocol messages to be sent to a give node */ +/** + * Send queued protocol messages to be sent to a give node. + * + * @param[in] pto The node which we are sending messages to. + * @param[in] fSendTrickle When true send the trickled data, otherwise trickle the data until true. + */ bool SendMessages(CNode* pto, bool fSendTrickle); /** Run an instance of the script checking thread */ void ThreadScriptCheck(); diff --git a/src/net.cpp b/src/net.cpp index 0723ee218..11c2cd07d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1406,7 +1406,7 @@ void ThreadMessageHandler() { TRY_LOCK(pnode->cs_vSend, lockSend); if (lockSend) - g_signals.SendMessages(pnode, pnode == pnodeTrickle); + g_signals.SendMessages(pnode, pnode == pnodeTrickle || pnode->fWhitelisted); } boost::this_thread::interruption_point(); } |