tree checksum vpatch file split hunks

all signers: mod6

antecedents: genesis

press order:

genesismod6
bitcoin-asciilifeform.1mod6

patch:

- 631071B1ECB5BE290EC5C3976C3262F5C05813E0612912890BCC97CF25AF5696FD20C46BB9FB50823DF1B6BEA2C35AEAFDEA4462ABC50933A10D1CC13A19FE69
+ 87E6C3D7333251722AD29FF54EC06F4AA276B9430DC12C804BB5FA1513A3E90A0EB206881154E525C88D71857741908F2A82370136876B06BC0506BA53F5873E
bitcoin/src/bitcoinrpc.cpp
(163 . 13)(163 . 9)
5 throw runtime_error(
6 "stop\n"
7 "Stop bitcoin server.");
8 #ifndef QT_GUI
9 // Shutdown will take long enough that the response should get back
10 CreateThread(Shutdown, NULL);
11 return "bitcoin server stopping";
12 #else
13 throw runtime_error("NYI: cannot shut down GUI with RPC command");
14 #endif
15 }
16
17
(1552 . 11)(1548 . 6)
19 if (pwalletMain->IsCrypted())
20 throw JSONRPCError(-15, "Error: running with an encrypted wallet, but encryptwallet was called.");
21
22 #ifdef QT_GUI
23 // shutting down via RPC while the GUI is running does not work (yet):
24 throw runtime_error("Not Yet Implemented: use GUI to encrypt wallet, not RPC command");
25 #endif
26
27 // TODO: get rid of this .c_str() by implementing SecureString::operator=(std::string)
28 // Alternately, find a way to make params[0] mlock()'d to begin with.
29 SecureString strWalletPass;
(2184 . 9)(2175 . 7)
31 strWhatAmI.c_str(),
32 GetConfigFile().c_str(),
33 EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str());
34 #ifndef QT_GUI
35 CreateThread(Shutdown, NULL);
36 #endif
37 return;
38 }
39
- B5486B3CB349B8AC9F3062359D595D28D076062390699FAC3F5AD50E89C3C82B1842524C153B09859A46F7F1776C40BE134F787B71761962D7170A7CDF8C3459
+ E5CAAE03E3AC4A66240BEF7EAAE55CB4F42B1D81EDA2CB2AF5EC0F2E36B4371DFCA10D3A004FBF041CE85FA2C588534E0629A41AA31D3BB4A0A280221252AD11
bitcoin/src/db.cpp
(919 . 9)(919 . 7)
44 ssKey >> strKey;
45
46 // Options
47 #ifndef QT_GUI
48 if (strKey == "fGenerateBitcoins") ssValue >> fGenerateBitcoins;
49 #endif
50 if (strKey == "nTransactionFee") ssValue >> nTransactionFee;
51 if (strKey == "fLimitProcessors") ssValue >> fLimitProcessors;
52 if (strKey == "nLimitProcessors") ssValue >> nLimitProcessors;
- 4D28E9CD20CADDB467B279FC8C18282F3690D1C5C8D2CBFCF1B9D4FC3AE2E009960DED1240B88FC23E2FE69D69410A9FFE50CFAD1A3F3A87496BB0868D8CECF4
+ DF1306462A92466A6661E4E98B4091FE0DE3FF53C781A8DC5FD6C575F052CA4ADC47E5E1A37B6904CCFEB107BF7899335DD5BBB4428E647DA6ACFFFD2E0CA6C6
bitcoin/src/headers.h
(89 . 8)(89 . 4)
57 #include "bignum.h"
58 #include "base58.h"
59 #include "main.h"
60 #ifdef QT_GUI
61 #include "qtui.h"
62 #else
63 #include "noui.h"
64 #endif
- 1BB5D8AF6051E25FC87AB7438B6DAFC864BE7792B04C6AA0D8942EFE701B2B4ABFCD1902B33CC4B1C2993668676E3C7D8F90BD6C075C70906D0C7E9C2DB4E83B
+ 5954C41570791ED6A4012660F36523D5DE96C502FC5960046B8D844DCCF51CC92F39ECA4748BD52443BB556E79E7895B51C8DA297F468F063115FC7FA9060BB1
bitcoin/src/init.cpp
(12 . 16)(12 . 6)
69 #include <boost/filesystem/fstream.hpp>
70 #include <boost/interprocess/sync/file_lock.hpp>
71
72 #if defined(BITCOIN_NEED_QT_PLUGINS) && !defined(_BITCOIN_QT_PLUGINS_INCLUDED)
73 #define _BITCOIN_QT_PLUGINS_INCLUDED
74 #define __INSURE__
75 #include <QtPlugin>
76 Q_IMPORT_PLUGIN(qcncodecs)
77 Q_IMPORT_PLUGIN(qjpcodecs)
78 Q_IMPORT_PLUGIN(qtwcodecs)
79 Q_IMPORT_PLUGIN(qkrcodecs)
80 Q_IMPORT_PLUGIN(qtaccessiblewidgets)
81 #endif
82
83 using namespace std;
84 using namespace boost;
(91 . 7)(81 . 7)
86 //
87 // Start
88 //
89 #if !defined(QT_GUI)
90
91 int main(int argc, char* argv[])
92 {
93 bool fRet = false;
(102 . 7)(92 . 7)
95
96 return 1;
97 }
98 #endif
99
100
101 bool AppInit(int argc, char* argv[])
102 {
(206 . 10)(196 . 7)
104 #endif
105 #endif
106 " -paytxfee=<amt> \t " + _("Fee per kB to add to transactions you send\n") +
107 #ifdef QT_GUI
108 " -server \t\t " + _("Accept command line and JSON-RPC commands\n") +
109 #endif
110 #if !defined(WIN32) && !defined(QT_GUI)
111 #if !defined(WIN32)
112 " -daemon \t\t " + _("Run in the background as a daemon and accept commands\n") +
113 #endif
114 " -testnet \t\t " + _("Use the test network\n") +
(241 . 19)(228 . 14)
116
117 // Remove tabs
118 strUsage.erase(std::remove(strUsage.begin(), strUsage.end(), '\t'), strUsage.end());
119 #if defined(QT_GUI) && defined(WIN32)
120 // On windows, show a message box, as there is no stderr
121 wxMessageBox(strUsage, "Usage");
122 #else
123 fprintf(stderr, "%s", strUsage.c_str());
124 #endif
125 return false;
126 }
127
128 fTestNet = GetBoolArg("-testnet");
129 fDebug = GetBoolArg("-debug");
130
131 #if !defined(WIN32) && !defined(QT_GUI)
132 #if !defined(WIN32)
133 fDaemon = GetBoolArg("-daemon");
134 #else
135 fDaemon = false;
(265 . 14)(247 . 11)
137 fServer = GetBoolArg("-server");
138
139 /* force fServer when running without GUI */
140 #if !defined(QT_GUI)
141 fServer = true;
142 #endif
143 fPrintToConsole = GetBoolArg("-printtoconsole");
144 fPrintToDebugger = GetBoolArg("-printtodebugger");
145 fLogTimestamps = GetBoolArg("-logtimestamps");
146
147 #ifndef QT_GUI
148 for (int i = 1; i < argc; i++)
149 if (!IsSwitchChar(argv[i][0]))
150 fCommandLine = true;
(282 . 9)(261 . 8)
152 int ret = CommandLineRPC(argc, argv);
153 exit(ret);
154 }
155 #endif
156
157 #if !defined(WIN32) && !defined(QT_GUI)
158 #if !defined(WIN32)
159 if (fDaemon)
160 {
161 // Daemonize
(541 . 10)(519 . 8)
163 if (fServer)
164 CreateThread(ThreadRPCServer, NULL);
165
166 #if !defined(QT_GUI)
167 while (1)
168 Sleep(5000);
169 #endif
170
171 return true;
172 }
- 66F2B1854332F9019BEBB0786491BE6D0757D51ADAC896B5E42592B3C563346CD9FEB138FC782C52709145E0834E482E5F0320F8066EC22FDC95ABF42FAA6059
+
bitcoin/src/qtui.h
(1 . 49)(0 . 0)
177 // Copyright (c) 2010 Satoshi Nakamoto
178 // Distributed under the MIT/X11 software license, see the accompanying
179 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
180 #ifndef BITCOIN_EXTERNUI_H
181 #define BITCOIN_EXTERNUI_H
182
183 #include <string>
184 #include <boost/function/function0.hpp>
185 #include "wallet.h"
186
187 typedef void wxWindow;
188 #define wxYES 0x00000002
189 #define wxOK 0x00000004
190 #define wxNO 0x00000008
191 #define wxYES_NO (wxYES|wxNO)
192 #define wxCANCEL 0x00000010
193 #define wxAPPLY 0x00000020
194 #define wxCLOSE 0x00000040
195 #define wxOK_DEFAULT 0x00000000
196 #define wxYES_DEFAULT 0x00000000
197 #define wxNO_DEFAULT 0x00000080
198 #define wxCANCEL_DEFAULT 0x80000000
199 #define wxICON_EXCLAMATION 0x00000100
200 #define wxICON_HAND 0x00000200
201 #define wxICON_WARNING wxICON_EXCLAMATION
202 #define wxICON_ERROR wxICON_HAND
203 #define wxICON_QUESTION 0x00000400
204 #define wxICON_INFORMATION 0x00000800
205 #define wxICON_STOP wxICON_HAND
206 #define wxICON_ASTERISK wxICON_INFORMATION
207 #define wxICON_MASK (0x00000100|0x00000200|0x00000400|0x00000800)
208 #define wxFORWARD 0x00001000
209 #define wxBACKWARD 0x00002000
210 #define wxRESET 0x00004000
211 #define wxHELP 0x00008000
212 #define wxMORE 0x00010000
213 #define wxSETUP 0x00020000
214
215 extern int MyMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
216 #define wxMessageBox MyMessageBox
217 extern int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
218 extern bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent);
219 extern void CalledSetStatusBar(const std::string& strText, int nField);
220 extern void UIThreadCall(boost::function0<void> fn);
221 extern void MainFrameRepaint();
222 extern void InitMessage(const std::string &message);
223 extern std::string _(const char* psz);
224
225 #endif
- 75BC498BF713D76D2E9A489C71604DBB77792673C7F87343D4C6FCF5F20FAC57CDFFD5F15513B00F21F9DE257ADBEB3CA581147F41A8BE96D69379269021C723
+ A39EA68039E96132373815ADA8BCEBD6611278868E86CA8C302DB31CDD9CF1CDBD73961B062FCE4CAC43F99FFF9F901F07E549D4023569325908C716509856F6
bitcoin/src/util.h
(134 . 12)(134 . 11)
230 return ret;
231 }
232 #define closesocket(s) myclosesocket(s)
233 #if !defined(QT_GUI)
234 inline const char* _(const char* psz)
235 {
236 return psz;
237 }
238 #endif
239
240
241
242
- DA1E35BCCE58F94AE0C44B6C2D8AC21D3B8263A594B93EFA335A6C804A1B115C16A977AB237D78C4E9EB6899FF5C9A108F36A9A2FC9FAD96DDAA2E30267587F7
+ C95A36390729D1D846DC7036D5489178A361AF69D310DCC250096DEAE764729550AC117096ADF54084FD0F9A7798228C8282656441CBA93351D810001F4D311B
bitcoin/src/wallet.cpp
(267 . 7)(267 . 6)
247 if (fInsertedNew || fUpdated)
248 if (!wtx.WriteToDisk())
249 return false;
250 #ifndef QT_GUI
251 // If default receiving address gets used, replace it with a new one
252 CScript scriptDefaultKey;
253 scriptDefaultKey.SetBitcoinAddress(vchDefaultKey);
(283 . 7)(282 . 6)
255 }
256 }
257 }
258 #endif
259 // Notify UI
260 vWalletUpdated.push_back(hash);
261