tree checksum vpatch file split hunks
all signers: mircea_popescu trinque asciilifeform ben_vulpes mod6
antecedents: mod6_der_high_low_s
press order:
patch:
(262 . 8)(262 . 6)
5 fprintf(stderr, "Error: setsid() returned %d errno %d\n", sid, errno);
6 }
7
8 if (!fDebug && !pszSetDataDir[0])
9 ShrinkDebugFile();
10 printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
11 printf("Bitcoin version %s\n", FormatFullVersion().c_str());
12 printf("Default data directory %s\n", GetDefaultDataDir().c_str());
- 66A8AC388136ACEAC7D24BD73C18B06445C2580849DD6C548D6684B5F1E9C19EAFD3F71427476FD982383DCFD0425F34CE524EAC1D8320FD990A28A1E4933288(764 . 35)(764 . 6)
17 return nFilesize;
18 }
19
20 void ShrinkDebugFile()
21 {
22 // Scroll debug.log if it's getting too big
23 string strFile = GetDataDir() + "/debug.log";
24 FILE* file = fopen(strFile.c_str(), "r");
25 if (file && GetFilesize(file) > 10 * 1000000)
26 {
27 // Restart the file with some of the end
28 char pch[200000];
29 fseek(file, -sizeof(pch), SEEK_END);
30 int nBytes = fread(pch, 1, sizeof(pch), file);
31 fclose(file);
32
33 file = fopen(strFile.c_str(), "w");
34 if (file)
35 {
36 fwrite(pch, 1, nBytes, file);
37 fclose(file);
38 }
39 }
40 }
41
42
43
44
45
46
47
48
49 //
50 // "Never go to sea with two chronometers; take one or three."
51 // Our three time sources are:
- F0C21C349B56516FEAC63C9CF8018C82B26583AD290A4B3610965E5A5A703D116671B1EF270395B8289C170B603630B5B7E493725E420E187BA1FBD326061FF5(156 . 7)(156 . 6)
56 void ReadConfigFile(std::map<std::string, std::string>& mapSettingsRet, std::map<std::string, std::vector<std::string> >& mapMultiSettingsRet);
57 std::string GetDefaultDataDir();
58 std::string GetDataDir();
59 void ShrinkDebugFile();
60 int GetRandInt(int nMax);
61 uint64 GetRand(uint64 nMax);
62 int64 GetTime();