diff options
author | R E Broadley <rebroad+github@gmail.com> | 2014-09-04 01:31:01 +0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-10-14 15:42:01 -0700 |
commit | 1bcee67ee780bc44d22b2e44783a04bc330d4f1f (patch) | |
tree | cd476bd99731b3e4deaba904a6f341718693a63f | |
parent | 4c93322923130b1554937de44545d949c54a6e39 (diff) |
Better logging of stalling
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index f032882ff8..c5ad82c14e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4468,8 +4468,10 @@ bool SendMessages(CNode* pto, bool fSendTrickle) LogPrint("net", "Requesting block %s peer=%d\n", pindex->GetBlockHash().ToString(), pto->id); } if (state.nBlocksInFlight == 0 && staller != -1) { - if (State(staller)->nStallingSince == 0) + if (State(staller)->nStallingSince == 0) { State(staller)->nStallingSince = nNow; + LogPrint("net", "Stall started peer=%d\n", staller); + } } } |