aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
Commit message (Collapse)AuthorAgeFilesLines
* directory re-organization (keeps the old build system)Jaromil2011-04-231-905/+0
| | | | | | | | | | | | | | | | | | | there is no internal modification of any file in this commit files are moved into directories according to established standards in sourcecode distribution; these directories contain: src - Files that are used in constructing the executable binaries, but are not installed. doc - Files in HTML and text format that document usage, quirks of the implementation, and contributor checklists. locale - Files that contain human language translation of strings used in the program contrib - Files contributed from distributions or other third party implementing scripts and auxiliary programs
* Merge branch 'master' of https://github.com/gjs278/bitcoinGavin Andresen2011-04-151-0/+19
|\
| * pidfile support for daemongjs2782011-04-121-0/+19
| |
* | Ensure version number->string conversion is consistentJeff Garzik2011-04-151-0/+29
|/
* Fix -logtimestamps to only print time prefix once per output lineJeff Garzik2011-03-161-1/+9
| | | | | | Incorporate BlueMatt's fix to only timestamp upon new line, and move -logtimestamp checking outside OutputDebugPrintF() to better future-proof it.
* Merge branch 'log-timestamp' of https://github.com/TheBlueMatt/bitcoinGavin Andresen2011-03-131-2/+3
|\
| * Only log timestamps if -logtimestamps is set.Matt Corallo2011-03-091-1/+2
| |
| * Add timestamp prefix to each line in the debug log (this time with ↵Matt Corallo2011-03-091-2/+2
| | | | | | | | human-readable times)
* | fix -daemon switchtcatm2011-03-031-0/+1
|/
* Avoid sprintf decimal-point localizationGavin Andresen2011-02-281-1/+6
|
* ParseMoney: allow full precisionGavin Andresen2011-02-231-12/+8
|
* FormatMoney: show full-precision valuesGavin Andresen2011-02-231-3/+12
|
* Don't scan the time offsets vector repeatedly once we've displayed the ↵Chris Moore2011-01-241-11/+16
| | | | warning that the user's clock may be wrong.
* Fix bus error in DebugPrint if -datadir given non-existent directory.Gavin Andresen2011-01-201-1/+1
|
* add -nolisten command line optionWitchspace2010-12-221-1/+1
|
* -- version 0.3.18 releasev0.3.18s_nakamoto2010-12-081-3/+2
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@198 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* new getworks_nakamoto2010-11-231-0/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@189 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* OutputDebugStringF fix for Mac FileVault problem, take 3gavinandresen2010-11-181-27/+20
| | | | | | | | | (cannot use a CRITICAL_BLOCK because of undefined order calling static destructors; instead, keep debug.log open, and tell people to use copytruncate when doing log rotation) git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@183 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Make OutputDebugStringF thread-safe again (thanks ArtForz for catching)gavinandresen2010-11-161-22/+26
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@182 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Re-open debug.log every ten minutes instead of every printf; fixes ↵gavinandresen2010-11-161-5/+14
| | | | | | performance problem with Mac FileVault. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@181 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin's TEST network as -testnet switch, misc fixess_nakamoto2010-10-191-9/+18
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@168 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* dkaparis: boost::bind build fix for c++0xs_nakamoto2010-10-111-2/+2
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@164 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* config option -rpcallowip= to accept json-rpc connections from another machines_nakamoto2010-09-151-9/+39
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@155 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin Andresen: clean shutdown on SIGTERMs_nakamoto2010-09-081-0/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@149 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* cleanup,s_nakamoto2010-09-071-6/+30
| | | | | | catch some recoverable exceptions and continue git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@148 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* propset svn:eol-style natives_nakamoto2010-08-291-762/+762
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@146 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* alert systems_nakamoto2010-08-251-24/+13
| | | | | | -- version 0.3.11 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@142 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* warning message if clock is too far offs_nakamoto2010-08-201-6/+21
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@141 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* misc changess_nakamoto2010-08-151-0/+8
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@131 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* bitcoind now compiles without wxWidgets or wxBases_nakamoto2010-07-261-9/+12
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@112 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin Andresen's JSON-RPC HTTP authentication,s_nakamoto2010-07-251-5/+36
| | | | | | | faster initial block download -- version 0.3.3 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@109 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* minor UI tweaks, removed some outdated txt files, s_nakamoto2010-07-181-1/+2
| | | | | | (and json-rpc password -rpcpw= switch, which we're going to revert) git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@108 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* switched from wxStandardPaths to GetDefaultDataDir, fixes bug reported by ↵s_nakamoto2010-07-091-1/+2
| | | | | | | | m0mchil when username contains non-lower-ASCII characters -- version 0.3.1 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@102 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin Andresen: implementation of autostart on system startup option on Linuxs_nakamoto2010-07-091-3/+3
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@101 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Laszlo's fix to make generate threads idle priority on Linux,s_nakamoto2010-07-081-11/+69
| | | | | | replaced some wxBase dependencies: wxMutex, wxFileExists, wxStandardPaths, wxGetLocalTimeMillis git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@99 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* fixed colors on ubuntu lucid,v0.2.13s_nakamoto2010-06-211-3/+1
| | | | | | | | | | | enabled -O2 in makefile.unix, boost removed -mt from their library names in 1.40, updated bitcoin icon, hashmeter, generated and hashmeter log entries -- version 0.2.13 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@86 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* better prevention of inventory relaying during initial download,v0.2.9s_nakamoto2010-05-261-5/+0
| | | | | | | | | message checksum between nodes with 0.2.9 or higher, optimization level up from -O0 to -O2, rpc functions: setlabel, getlabel, getaddressesbylabel, getreceivedbyaddress, getreceivedbylabel, listreceivedbyaddress, listreceivedbylabel -- version 0.2.9 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@78 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Mac OS build fixes by laszlov0.2.8s_nakamoto2010-05-191-0/+6
| | | | | | -- version 0.2.8 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@76 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* fixed runaway memory alloc bug on 64-bit in ParseString found by sirius-ms_nakamoto2010-03-051-4/+10
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@74 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* fix unsafe string handling in wxGetTranslations_nakamoto2010-02-281-4/+4
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@73 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* GUI-less build target bitcoind that links to wxBase and shouldn't need GTK,v0.2.7s_nakamoto2010-02-251-2/+3
| | | | | | | | split init and shutdown from ui.cpp into init.cpp, support wxUSE_GUI=0 -- version 0.2.7 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@71 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* run as daemon without GUI,v0.2.6s_nakamoto2010-02-231-1/+3
| | | | | | | | | hooked wxApp::Initialize to ignore gtk-init-check failure if no GUI, fork to daemonize, rpc getinfo, getconnectioncount, getbalance, getgenerate, setgenerate, -- version 0.2.6 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@70 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Address Book with tabs instead of separate Your Address book, v0.2.4s_nakamoto2010-02-201-1/+5
| | | | | | | | | | | | with live update of default address in main window, New... button on main window for creating new receiving address, made receiving address labels more visible, ask user before paying transaction fee, when sending to bitcoin address also use a bitcoin address for the change, added some event.Skip() to fix UI glitches -- version 0.2.4 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@68 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* safer wxGetTranslation wrappers_nakamoto2010-02-171-0/+29
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@67 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* all builds are now with wxWidgets-2.9.0, we are now using UTF-8, v0.2.2s_nakamoto2010-02-171-3/+3
| | | | | | | added support for language translation file locale/<lang>/LC_MESSAGES/bitcoin.mo -- version 0.2.2 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@66 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* command line and JSON-RPC first draft, requires Boost 1.35 or higher for ↵s_nakamoto2010-02-121-1/+2
| | | | | | | | | | | boost::asio, added SetBitcoinAddress and GetBitcoinAddress methods on CScript, critsect interlocks around mapAddressBook, added some random delays in tx broadcast to improve privacy, now compiles with MSVC 8.0 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@60 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* simplify AddAddress, s_nakamoto2010-01-281-1/+76
| | | | | | | | readcompactsize limit, fixed a 64-bit compile error in serialize.h, change status "# blocks" to "# confirmations" and widen the column. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@53 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* retry IRC if name in use, s_nakamoto2009-12-111-23/+32
| | | | | | | | resize to fit ubuntu's giant default font, scroll debug.log, pause gen during initial block download git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@44 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* bugfix Db::open/close and zombie sockets bugs fix double-close of socket handle,s_nakamoto2009-11-181-4/+6
| | | | | | | | | | keep databases open, close db cursors, initial block download in batches of 500 blocks, fix misc warnings, subver linux-test8 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@40 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* monitor ThreadSocketHandler and terminate and restart if hung, convert ↵s_nakamoto2009-11-131-25/+23
| | | | | | _beginthread to CreateThread wrapper, disconnect inactive connections, ping, break up long messages to speed up initial download, better priorities for initiating connections, track how many nodes have requested our blocks and transactions, status #/offline and warning message on unsent blocks, minimize on close as separate option -- linux-test5 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@38 1a98c847-1fd6-4fd8-948a-caf3550aa51b