diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/net.h | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -841,7 +841,11 @@ public: | |||
| 841 | extern int nDropMessagesTest; | 841 | extern int nDropMessagesTest; |
| 842 | if (nDropMessagesTest > 0 && GetRand(nDropMessagesTest) == 0) | 842 | if (nDropMessagesTest > 0 && GetRand(nDropMessagesTest) == 0) |
| 843 | { | 843 | { |
| 844 | if (LogAcceptsCategory("net")) printf("dropmessages DROPPING SEND MESSAGE\n"); | 844 | // Same category as the "sending: " this line interrupts, so a tx |
| 845 | // does not announce its own drop under "net" having been gated | ||
| 846 | // off under "relay". nPushPos can be -1 here, and then | ||
| 847 | // GetMessageCommand() returns "" and this is "net" as before. | ||
| 848 | if (LogAcceptsCategory(SendLogCategory())) printf("dropmessages DROPPING SEND MESSAGE\n"); | ||
| 845 | AbortMessage(); | 849 | AbortMessage(); |
| 846 | return; | 850 | return; |
| 847 | } | 851 | } |