aboutsummaryrefslogtreecommitdiff
path: root/util.h
Commit message (Collapse)AuthorAgeFilesLines
* directory re-organization (keeps the old build system)Jaromil2011-04-231-657/+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/+2
|\
| * pidfile support for daemongjs2782011-04-121-0/+2
| |
* | Ensure version number->string conversion is consistentJeff Garzik2011-04-151-8/+1
|/
* Fix -logtimestamps to only print time prefix once per output lineJeff Garzik2011-03-161-0/+1
| | | | | | Incorporate BlueMatt's fix to only timestamp upon new line, and move -logtimestamp checking outside OutputDebugPrintF() to better future-proof it.
* fix -daemon switchtcatm2011-03-031-0/+1
|
* add -nolisten command line optionWitchspace2010-12-221-0/+1
|
* All boolean options/flags now work the same way.gavinandresen2010-12-031-0/+11
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@194 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin's TEST network as -testnet switch, misc fixess_nakamoto2010-10-191-0/+25
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@168 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* don't count or spend payments until they have 1 confirmation,s_nakamoto2010-09-301-0/+8
| | | | | | | | misc cleanup, changed internal version number from 312 to 31300 -- version 0.3.13 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@158 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* config option -rpcallowip= to accept json-rpc connections from another machines_nakamoto2010-09-151-1/+18
| | | | 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-16/+24
| | | | | | 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-589/+589
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@146 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* alert systems_nakamoto2010-08-251-1/+5
| | | | | | -- 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-0/+6
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@141 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* fix -datadir=./subdir relative path,s_nakamoto2010-08-121-6/+9
| | | | | | | | | | autostart off by default except on windows, fix occasional "vector iterator not dereferencable" assertion with msvc, fix readlink compile warning on linux build, use sys/param.h and BSD define instead of __BSD__, -paytxfee switch git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@130 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* added a subset of Crypto++ 5.6.0 with 48% faster ASM SHA-256, combined ↵s_nakamoto2010-07-271-0/+14
| | | | | | speedup 2.5x faster vs 0.3.3, thanks BlackEye for figuring out the alignment problem git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@114 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* bitcoind now compiles without wxWidgets or wxBases_nakamoto2010-07-261-4/+11
| | | | 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-1/+10
| | | | | | | 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
* switched from wxStandardPaths to GetDefaultDataDir, fixes bug reported by ↵s_nakamoto2010-07-091-0/+1
| | | | | | | | 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
* Laszlo's fix to make generate threads idle priority on Linux,s_nakamoto2010-07-081-7/+11
| | | | | | 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
* automatically change displayed address whenever it receives anything,v0.2.10s_nakamoto2010-06-101-2/+7
| | | | | | | | | | added help and -? for daemon command line rpc commands, only relay addr messages to 5 random nodes to save bandwidth, started setting wtx.fFromMe flag, trickle out tx inventory messages to protect privacy -- version 0.2.10 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@81 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Mac OS build fixes by laszlov0.2.8s_nakamoto2010-05-191-0/+1
| | | | | | -- version 0.2.8 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@76 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* run as daemon without GUI,v0.2.6s_nakamoto2010-02-231-0/+1
| | | | | | | | | 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
* safer wxGetTranslation wrappers_nakamoto2010-02-171-5/+4
| | | | 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-4/+5
| | | | | | | 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
* renamed a few rpc methodss_nakamoto2010-02-141-0/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@63 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* command line and JSON-RPC first draft, requires Boost 1.35 or higher for ↵s_nakamoto2010-02-121-2/+16
| | | | | | | | | | | 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-89/+12
| | | | | | | | 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
* miscs_nakamoto2009-12-131-0/+4
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@48 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* retry IRC if name in use, s_nakamoto2009-12-111-0/+2
| | | | | | | | 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-2/+21
| | | | | | | | | | 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-17/+88
| | | | | | _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
* got rid of CheckForShutdown, replaced some thread-unsafe wxWidgets calls, ↵s_nakamoto2009-11-061-1/+13
| | | | | | Linux fixes, socket send MSG_NOSIGNAL, bind INADDR_ANY, works reliably on Linux now except if wxMessageBox is used in a thread other than the GUI thread git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@33 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* unix build merged in, bitmap resources from xpm instead of rc, better addr ↵s_nakamoto2009-11-051-11/+29
| | | | | | relay, better selection of addrs by time last seen for faster connect git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@32 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* move debug.log and db.log to data dir, portable GetDataDir, optimize ↵s_nakamoto2009-11-011-10/+29
| | | | | | GetBalance, fix repaint bogdown, -addnode and -? switches git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@25 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Linux alternatives for the Windows headers and PerformanceCounter. Some ↵sirius-m2009-10-311-2/+10
| | | | | | typedefs and #defines for the Linux build. Fixed GetDataDir. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@23 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* better wallet.dat flush, consolidated QueryPerformanceCounter, PRI64d printf ↵s_nakamoto2009-10-291-17/+26
| | | | | | portability git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@20 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* CCriticalSection using wxWidgets instead of Windows OS callss_nakamoto2009-10-291-11/+20
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@19 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* addr relaying fixes, proxy option and privacy patches, detect connect to ↵s_nakamoto2009-10-291-69/+95
| | | | | | self, non-final tx locktime changes, fix hide unconfirmed generated git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@18 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* First commitsirius-m2009-08-301-0/+399
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@1 1a98c847-1fd6-4fd8-948a-caf3550aa51b