Fixes Issue #1234 - re-issues getblocks to the next suitable peer when the previously selected one disappears.
edit@laanwj: clarified title, was “issue1234”
19@@ -20,3 +20,5 @@ qrc_*.cpp
20 *.pro.user
21 #mac specific
22 .DS_Store
23+/build/
24+/.git.freshlycloned/
it’s not.. I’ve removed this and made a new fixup commit now. Just need to squash(?) the commits together now.. @sipa, can you remind me the git command please?
(the /build/ line is needed though, right? without it, git status reports on the contents of the build directory…)
Thread safety of ’nAskedForBlocks’ ? Accessed in both ProcessMessage() and CNode::CloseSocketDisconnect()
fAskedForBlocks should be set to false, if found to be true in CNode::CloseSocketDisconnect()
19@@ -20,3 +20,4 @@ qrc_*.cpp
20 *.pro.user
21 #mac specific
22 .DS_Store
23+/build/
2403+ printf("initial getblocks to %s\n", pfrom->addr.ToString().c_str());
2404+ pfrom->PushGetBlocks(pindexBest, uint256(0));
2405+ }
2406+
2407+
2408+ if (strCommand == "version") ;
525@@ -526,7 +526,14 @@ void CNode::CloseSocketDisconnect()
526 fDisconnect = true;
527 if (hSocket != INVALID_SOCKET)
528 {
529- printf("disconnecting node %s\n", addrName.c_str());
530+ if (fDebug)
531+ printf("%s ", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
Automatic sanity-testing: FAILED BUILD/TEST, see http://jenkins.bluematt.me/pull-tester/8ce572c8ad0960ff08a577f1ed2bf49ed0108ab0 for binaries and test log.
This could happen for one of several reasons:
I did:
git fetch upstream master git checkout issue1234 git rebase -i upstream/master git push –force origin issue 1234
The rebase didn’t require any manual intervention, which I was surprised by, so I’m wondering if I did something wrong before the push…
Conflicts:
src/net.cpp
Conflicts:
.gitignore