tree checksum vpatch file split hunks
all signers: mircea_popescu trinque asciilifeform ben_vulpes mod6
antecedents: asciilifeform-kills-integer-retardation bitcoin-asciilifeform.4-goodbye-win32 asciilifeform_ver_now_5_4_and_irc_is_gone_and_now_must_give_ip mod6_fix_dumpblock_params
press order:
patch:
(1817 . 6)(1817 . 28)- 4263D0EF771CB75E59E909372BA8B850E70A4CBC03635234119A267774D4A9095ADD15E1094B18646C9A1C280A486C7EC68D8CEDC27CE2F6A14777AF129E8B7A
5 }
6
7
8 Value eatblock(const Array& params, bool fHelp)
9 {
10 if (fHelp || params.size() < 1 || params.size() > 1)
11 throw runtime_error(
12 "eatblock <filename>\n"
13 "Load a candidate for the next block directly from <filename>.");
14
15 if (!fCanEat)
16 throw runtime_error(
17 "'eatblock' is only permitted if bitcoind was started with -caneat flag!");
18
19 // path to load block from
20 string filename = params[0].get_str();
21
22 printf("Attempting to create block #%d from file %s\n", nBestHeight + 1, filename.c_str());
23 CAutoFile filein = fopen(filename.c_str(), "rb");
24 CBlock block;
25 filein >> block;
26 return ProcessBlock(NULL, &block); // note that 'true' even if it was rejected (bastard, etc)
27 } // ... but will return 'false' if we already have the block.
28
29
30
31 //
32 // Call Table
(1865 . 6)(1887 . 7)
34 make_pair("getmemorypool", &getmemorypool),
35 make_pair("listsinceblock", &listsinceblock),
36 make_pair("dumpblock", &dumpblock),
37 make_pair("eatblock", &eatblock),
38 };
39 map<string, rpcfn_type> mapCallTable(pCallTable, pCallTable + sizeof(pCallTable)/sizeof(pCallTable[0]));
40
(174 . 6)(174 . 7)- 626E2306C3784911C960136E39BD3EB7C925CA90378FAA03FB616A5D7180335889F0807BB39C9AC1907B285C43E730558190E1A1D5717EBA4BAE6006A9ABEDFD
45 " -daemon \t\t " + _("Run in the background as a daemon and accept commands\n") +
46 " -testnet \t\t " + _("Use the test network\n") +
47 " -debug \t\t " + _("Output extra debugging information\n") +
48 " -caneat \t\t " + _("Permit the use of 'eatblock'\n") +
49 " -logtimestamps \t " + _("Prepend debug output with timestamp\n") +
50 " -printtoconsole \t " + _("Send trace/debug info to console instead of debug.log file\n") +
51 " -rpcuser=<user> \t " + _("Username for JSON-RPC connections\n") +
(196 . 6)(197 . 7)
53 fTestNet = GetBoolArg("-testnet");
54 fDebug = GetBoolArg("-debug");
55 fDaemon = GetBoolArg("-daemon");
56 fCanEat = GetBoolArg("-caneat");
57
58 if (fDaemon)
59 fServer = true;
(20 . 6)(20 . 7)
64 bool fDebug = false;
65 bool fPrintToConsole = false;
66 bool fPrintToDebugger = false;
67 bool fCanEat = false;
68 char pszSetDataDir[MAX_PATH] = "";
69 bool fRequestShutdown = false;
70 bool fShutdown = false;
- E5E5DA8C45C0FAB1ACA83EADB8E98560DC14F65060803B5EFD7EA83418BE6412EE6A4F59F15FA939E1D639EF2638C9C5D18B5448C246D943827A41E01997EF7B(110 . 6)(110 . 7)
75 extern bool fDebug;
76 extern bool fPrintToConsole;
77 extern bool fPrintToDebugger;
78 extern bool fCanEat;
79 extern char pszSetDataDir[MAX_PATH];
80 extern bool fRequestShutdown;
81 extern bool fShutdown;