- BB842420BCC67752EDF8E658524B135F499C5F8676557A6C12F47F204303E34BD73BEABDF6E9146BA452947C4E5CD298529969FAB90F16942F6BF0C1229F7043
+ F72C255497921A2DBC173565EC31179D1E5959FA3D0BC61313F6D0AC168F471EE79DCE5EE92F51EE923DAF2E8B1959B8368E066FD177FFCB5C57136A211BC2F0
bitcoin/src/net.h
(261 . 7)(261 . 7)
1872 // We're using mapAskFor as a priority queue,
1873 // the key is the earliest time the request can be sent
1874 int64& nRequestTime = mapAlreadyAskedFor[inv];
1875 printf("askfor %s %"PRI64d"\n", inv.ToString().c_str(), nRequestTime);
1876 printf(SINF SNET "requesting inv %s\n", inv.ToString().c_str());
1877
1878 // Make sure not to reuse time indexes to keep things in the same order
1879 int64 nNow = (GetTime() - 1) * 1000000;
(286 . 8)(286 . 7)
1881 vSend << CMessageHeader(pszCommand, 0);
1882 nMessageStart = vSend.size();
1883 if (fDebug) {
1884 printf("%s ", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
1885 printf("sending: %s ", pszCommand);
1886 printf(SINF SNET "sending command %s\n", pszCommand);
1887 }
1888 }
1889
(301 . 14)(300 . 14)
1891 LEAVE_CRITICAL_SECTION(cs_vSend);
1892
1893 if (fDebug)
1894 printf("(aborted)\n");
1895 printf(SWAR SNET "aborted\n");
1896 }
1897
1898 void EndMessage()
1899 {
1900 if (mapArgs.count("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0)
1901 {
1902 printf("dropmessages DROPPING SEND MESSAGE\n");
1903 printf(SWAR SNET "dropping send message\n");
1904 AbortMessage();
1905 return;
1906 }
(330 . 10)(329 . 6)
1908 memcpy((char*)&vSend[nHeaderStart] + offsetof(CMessageHeader, nChecksum), &nChecksum, sizeof(nChecksum));
1909 }
1910
1911 if (fDebug) {
1912 printf("(%d bytes)\n", nSize);
1913 }
1914
1915 nHeaderStart = -1;
1916 nMessageStart = -1;
1917 LEAVE_CRITICAL_SECTION(cs_vSend);